Search⌘ K
AI Features

Get Started with Cypher

Explore the fundamentals of Cypher query language for Neo4j by learning to construct and match nodes, relationships, and paths. This lesson helps you understand core syntax patterns including CREATE, MATCH, MERGE clauses, and property maps, enabling you to write and execute basic graph queries effectively.

Let’s recap some basics on Cypher patterns that are used in CREATE clauses for construction and MATCH clauses for querying. These patterns are used to specify nodes, relationships, and paths. This should be enough to get us started.

Some basic Cypher syntax

Cypher uses an ASCII art style for writing down its queries. This really helps because with labels and properties in Cypher, we are essentially dealing with structured values for nodes and relationships.

Pattern for nodes

The pattern for creating and matching a node in Cypher is:

( variable? :label* {properties}? )

Here we use the ...