NEW
Declarative language for querying and updating property graphs, originally created for Neo4j and standardized via openCypher initiatives.
DESCRIPTION
Cypher expresses graph patterns with ASCII-art syntax using MATCH, CREATE, and other clauses. It enables readable traversal and manipulation of nodes, relationships, and properties. Neo4j popularized Cypher, and openCypher broadened adoption across platforms. Cypher influenced the ISO GQL standard efforts for property graph queries. It is widely used for knowledge graphs, recommendation systems, and network analytics.
ALTERNATIVE DEFINITIONS
Neo4j
Cypher is a declarative graph query language that allows for expressive and efficient querying and updating of the graph.
Emphasizes declarative, expressive querying and updating capabilities.
openCypher
openCypher is an open project to bring a common declarative query language for property graphs to the wider database community.
Positions Cypher within an open standardization initiative for property graphs.
Wikipedia
Cypher is a declarative graph query language that allows for straightforward and efficient querying of property graphs.
Summarizes Cypher’s purpose and property graph focus.
RELATED TERMS
Neo4j Property Graph Pattern Matching Graph Database OpenCypher Graph Query Language MATCH Clause Traversal
COMPETING TERMS
RELATIONS
- Broader: Query Language
KNOWLEDGE AREAS
Programming Languages Data Storage & Operations Semantic & Knowledge Modeling Data Engineering
TARGET AUDIENCE
Data Engineer Software Developer Data Architect Data Modeler
EXTERNAL SOURCES
- Wikipedia - Cypher (query language)
- Neo4j - Official Cypher manual
- openCypher - Open Cypher initiative
- ISO - ISO GQL standard overview
TOP QUESTIONS
Why use Cypher over SQL for graphs?
Cypher’s pattern-matching syntax naturally expresses traversals and relationships, reducing query complexity versus relational joins for graph-centric problems.
Category: Relevancy
How does MATCH work in Cypher?
MATCH declaratively describes graph patterns to find nodes and relationships, often paired with WHERE filters and RETURN projections.
Category: Example
What are common mistakes with Cypher?
Unbounded pattern expansions and missing indexes cause slow queries; explicit relationship directions and constraints improve performance.
Category: Mistakes
Is Cypher standardized?
openCypher advances common semantics, and ISO GQL efforts formalize property graph querying standards influenced by Cypher.
Category: Overview
How does Cypher compare to Gremlin?
Gremlin is imperative and traversal-based; Cypher is declarative with pattern matching. Choice depends on style and platform support.
Category: Alternatives
What indexes help Cypher performance?
Node and relationship property indexes, constraints, and careful cardinality estimation improve match efficiency.
Category: Requirements
Can Cypher update graphs?
Yes, CREATE, MERGE, SET, and DELETE support graph mutation alongside querying patterns.
Category: Overview
What’s the biggest risk in complex Cypher queries?
Cartesian products from combining patterns unintentionally can explode result size and runtime.
Category: Risks
Where to learn Cypher?
Start with the Neo4j Cypher manual and interactive tutorials, then explore openCypher resources.
Category: Learning