Getting Started with Cypher

We can’t possibly do any real justice to a language as rich as Cypher here. For more information, you should consult the Cypher Query Language[38] developer resource, The Neo4j Cypher Manual,[39] and the openCypher Resources page.[40]

Let’s review some basics of Cypher patterns, which are used in CREATE clauses for construction and in 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

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

Nodes

The pattern ...

Get Exploring Graphs with Elixir now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.