java - How do I retrieve the nodes deleted after a cypher query? -


so i'm deleting nodes database, , want retrieve nodes i've deleted far don't go looking them later.

how neo4j ids of deleted nodes in java code?

you can return ids of nodes you're deleting them:

match (n:somelabel) delete n return id(n) 

however, mentioned in documentation, ids can reused neo4j, it's bad idea keep referencing them outside of transaction (not sure if that's use case).


Comments