Differences between revisions 2 and 5 (spanning 3 versions)
Revision 2 as of 2023-05-24 15:29:38
Size: 252
Editor: scot
Comment:
Revision 5 as of 2023-05-28 16:07:55
Size: 660
Editor: scot
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

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