Size: 252
Comment:
|
Size: 660
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 5: | Line 5: |
{{{#highlight:csharp CREATE (label:Type {Name: "Name here", Attr1: "attribute 1..."}) |
== Creating Nodes == Name should be small so that you can easily view them on the screen when looking at the graph, because by default, name becomes the label. {{{#!cypher CREATE (var:Type {Name: "Name here", Attr1: "attribute 1..."}) |
Line 8: | Line 12: |
== Query == The where conditions should look similar to the expression in the {} section of the create. {{{#!cypher MATCH (var:Type {[where conditions]}) RETURN var }}} == Delete == {{{#!cypher MATCH (var:Type) DELETE DETACH var }}} |
This is Dr. A's Cheat Sheet of Neo4J commands
Yes, this is a very simple cheatsheet, but I don't use Neo4J that often, so it is necessarily simple.
Creating Nodes
Name should be small so that you can easily view them on the screen when looking at the graph, because by default, name becomes the label.
CREATE (var:Type {Name: "Name here", Attr1: "attribute 1..."})
Query
The where conditions should look similar to the expression in the {} section of the create.
MATCH (var:Type {[where conditions]}) RETURN var
Delete
MATCH (var:Type) DELETE DETACH var