Differences between revisions 4 and 5
Revision 4 as of 2023-05-24 15:39:15
Size: 590
Editor: 71
Comment:
Revision 5 as of 2023-05-28 16:07:55
Size: 660
Editor: 71
Comment:
Deletions are marked like this. Additions are marked like this.
Line 20: Line 20:

== 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

Neo4J (last edited 2023-05-28 16:08:31 by 71)