1.3 · Lesson

Executing Queries

You can use the driver.executeQuery() method to run CypherNeo4j'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. statements against the database. The method automatically handles sessions, transactions, and retries for you.

By default, driver.executeQuery() runs in WRITE mode. In a clustered environment, this sends all queries to the cluster leader.