Christmas everyone,
I have a simple question. I want to delete a node with/without relationships in Neo4j and return the deleted node and/or its specific property. Something in the following lines (below doesn't work)
MATCH(j:JOB) where j.job_id= "1" DELETE j, return j;
I can do the above task in two different requests, query the node that is to be deleted and then delete it but, I want to know whether it is possible to do it in single statement.
I wonder if there is a way to store the node in a different placehoder and then delete the node and return the placeholder. I am new to Neo4j, need suggestions.
I have come across this post which is old and I could not get it work with my version of Neo4j. I use Neo4j 2.3.1