Neo4J Components

Nodes

Labels

Properties

Relationships

Unlike MySQL, you don't create Tables / Schemas first. You start creating the actual Node (Datapoint).

Node

// Create a single Node

create (n)

match(t) return t

create (anything),(seriously_anything)

match(e) return e

Label

// Node with Label

create(n:Student)

match(y) return y

Label every node. Nodes without Labels are not useful.

Remember Algebra? we always find x? Why it's always x?

In the same way, in Neo4J, the node is called n.

Properties

Relationships

Create relationships

Create a relationship between the existing nodes

Create a relationship with labels and properties

Last updated