Cypher Builder

Cypher® Builder is a programmatic API for building Cypher queries for Neo4j in JavaScript and TypeScript.

For example, the following code:

const movieNode = new Cypher.Node();
const pattern = new Cypher.Pattern(movieNode, { labels: ["Movie"] });

const matchQuery = new Cypher.Match(pattern)
    .where(movieNode, {
        title: new Cypher.Param("The Matrix"),
    })
    .return(movieNode.property("title"));

const { cypher, params } = matchQuery.build();

Generates the following Cypher query and any required parameters:

MATCH (this0:Movie)
WHERE this0.title = $param0
RETURN this0.title

If you are using Java, check Neo4j Cypher-DSL.