1.3 · Lesson

Executing Queries

You can use the driver.executeQuery() method to run Full definition for Cypher (opens in a new tab)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. statements against the database. The method automatically handles sessions, Full definition for transaction (opens in a new tab)A unit of work that either succeeds in full or leaves no trace., and retries for you.

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