O'Reilly logo

Neo4j Cookbook by Ankur Goel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Activity streaming with Neo4j

The implementation of activity streaming or news feed is one of the most fundamental features of any social network, which enables a user to follow the activity of other users in real time, making it more engaging.

In this recipe, you will learn how to implement activity streaming or news feed with Neo4j.

Getting ready

The steps required for this recipe are similar to the steps described in the first recipe of this chapter. We are adding one more field, Status, to get updates from friends. Apart from the Cypher query used in the first recipe of this chapter, add the following nodes and relationships to a similar Cypher query:

//STATUS
(st1:Status { text : 'I am sleeping', date:'1234'}),
(st2:Stautus { text : 'Going to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required