Cypher

Cypher

Neo4j's implementation of GQL, the ISO standard query language for graph databases. It is declarative: you describe the pattern to find, and the database decides how to find it.

Example

One statement writes the film, the other reads it back.

cypher
CREATE (:Person {name: 'Tom Hanks'})-[:ACTED_IN]->(:Movie {title: 'Toy Story'})
cypher
MATCH path = (:Person {name: 'Tom Hanks'})-[:ACTED_IN]->(:Movie)
RETURN path

Both are built around the same pattern, (:Person)-[:ACTED_IN]->(:Movie). CREATE stores it, and MATCH looks for it.

Lessons that use this term

The lesson and course links below open in a new tab.

No published lesson uses this term yet.

All glossary terms