O'Reilly logo

Learning Neo4j 3.x - Second Edition by Rik Van Bruggen, Jérôme Baton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Key operative words in Cypher

Like every database query language, there are a few operative words that have an important meaning in the composition of every query. It's useful for you to know these, as you will be using them to compose your specific queries on your specific datasets.

Keyword

Function

Example

MATCH

This describes a pattern that the database should match. This is probably the most important piece of the query as it is a structural component that always starts your queries (it's one character shorter than SELECT).

MATCH (me:Person)-[:KNOWS]->(friend)

WHERE

This filters results that are found in the match for specific criteria.

WHERE me.name = "My Name" AND me.age > 18

RETURN

This returns results. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required