Overview Defining a Model Instances Creating Nodes and Relationships Merging Nodes and Relationships Updating Nodes and Relationships Deleting Nodes Deleting Relationships Finding Nodes and Relationships Hooks Temporary Databases
QueryBuilderParameters['WithI']
A literal string will be used as is.
1linkconst queryBuilder = new QueryBuilder()
2link .with('a, b'); /* --> literal string to use */
3link
4linkconsole.log(queryBuilder.getStatement()); // WITH a, b
5linkconsole.log(queryBuilder.getBindParam().get()); // {}
An array of strings can be used, which will be joined with a comma.
1linkconst queryBuilder = new QueryBuilder()
2link .with(['x', '{ y: x }']);
3link
4linkconsole.log(queryBuilder.getStatement()); // WITH x, { y: x }
5linkconsole.log(queryBuilder.getBindParam().get()); // {}