Using Cypher how can I get all nodes in a graph? I am running some testing against the graph and I have some nodes without relationships so am having trouble crafting a query.
The reason I want to get them all is that I want to delete all the nodes in the graph at the start of every test.
Best Answer
So, this gives you all nodes:
If you want to delete everything from a graph, you can do something like this:
Updated for 2.0+
Edit: Now in 2.3 they have
DETACH DELETE
, so you can do something like: