From the course: Introduction to Neo4j
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Introducing Cypher - Neo4j Tutorial
From the course: Introduction to Neo4j
Introducing Cypher
- [Instructor] Introducing Cypher. Cypher is a graph query language for Neo4j. And as well as being used in Neo4j, it is used in a number of other databases, such as RedisGraph and SAP HANA Graph. It is a declarative language. So this means, unlike an imperative language where you need to give specific instructions as to how to execute a query, a declarative language you specify what query you'd like to run, and the query engine figures out how exactly to implement it. And within Cypher, everything is a pattern. Always think pattern. So a lone node is a pattern. A pair of nodes with a relationship is a pattern. Or a path is a pattern. So if you cast your minds back to our "Hello, world!" example, we had a lone node where I was matching me, learner. That is a pattern. Along with our pattern of when we had learner, rail, greeting. And you've got an example here from our "Hello, world!" chapter. So…