I play with server 2.0 M6 neo4j (oracle jdk7 on win7 64).
I am trying to remove a node and its relationships using a single cypher request on a REST API.
The generated request (which works if I run it in the browser interface) looks like this:
START n = node( 1916 ) MATCH n-[r]-() DELETE n, r
Which by the time I passed it through gson, is issued as:
{"query":"START n \u003d node( 1916 ) MATCH n-[r]-() DELETE n, r"}
That when sending to the server receives a response:
{ "columns" : [ ], "data" : [ ] }
My test failed because node can still be found on the neo4j server by its id ...
If I simplify my query, I just remove the node (which has no relationship), so its:
START n = node( 1920 ) DELETE n
Which becomes
{"query":"START n \u003d node( 1920 ) DELETE n"}
Then node is deleted.
Did I miss something?
Thanks Andy
source share