Difference between revisions of "Neo4j"

From John Freier
Jump to: navigation, search
(Created page with " == Sample Cypher == Create Node CREATE (n:Label {property:'value'}) return n; Find Node By Id MATCH (n:Label) WHERE Id(n) = 0 RETURN n; Delete Node by Id MATCH (n:No...")
(No difference)

Revision as of 10:56, 17 December 2015

Sample Cypher

Create Node

 CREATE (n:Label {property:'value'}) return n;

Find Node By Id

 MATCH (n:Label) WHERE Id(n) = 0 RETURN n;

Delete Node by Id

 MATCH (n:Node) WHERE Id(n) = 0 DELETE n;