Kanak
Kanak

Reputation: 301

retrieve data from neo4j DB at a certain interval of time

I am using a Neo4j DB. I want a query to retrieve the data that has been updated recently. Say for example I have the data at a certain time (say 4 o'clock). How do I check the data entered after a certain interval of time (say 4 hours)?

Upvotes: 0

Views: 182

Answers (2)

Zafer Fatih Koyuncu
Zafer Fatih Koyuncu

Reputation: 325

you can use node.js and socket.io to push the data at the certain time. also you can add an updatedAt field to your graph nodes. So at a certain time you can traverse through nodes and broadcast the data to your clients.

Upvotes: 0

dev
dev

Reputation: 715

I think you will have to create one more field say createdOn where you will maintain the timestamp for insertion.

And you can find the record using where clause in cypher query.

Upvotes: 2

Related Questions