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) DETACH DELETE var

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