The Cypher refcard

Cypher is the declarative query language for Neo4j, the world's leading graph database.

The key principles and capabilities of Cypher are as follows:

  • Cypher matches patterns of nodes and relationship in the graph, to extract information or modify the data
  • Cypher has the concept of identifiers, which denote named, bound elements and parameters
  • Cypher can create, update, and remove nodes, relationships, labels, and properties
  • Cypher manages indexes and constraints

You can try Cypher snippets live in the Neo4j Console at console.neo4j.org or read the full Cypher documentation at docs.neo4j.org. For live graph models using Cypher, check out the graph gists at gist.neo4j.org as well.

Note

{value} denotes either literals (for ad hoc Cypher ...

Get Learning Neo4j 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.