cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Update timestamp when Node property is modified

Hi

I am new to Neo4j and would like help from wonderful community to figure out a way to update timestamp property every time other node properties are modified. This would allow me to query for nodes that have been modified after certain datetime value. Please provide your valuable suggestions.

Thanks
Vinay

4 REPLIES 4

If you used an APOC trigger to update the timestamp property of a node, wouldn't it trigger as another update to a property of the node thereby getting into an infinite loop?

@aldrinm you would need to confirm with one of the Neo4j / apoc engineers to be sure, but if they've implemented triggers with the same logic as most other databases (all that I've seen), then no, triggers won't trigger themselves.

How did you solve the problem in the end?