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['UnwindI']
A literal string will be used as is.
1linkconst queryBuilder = new QueryBuilder()
2link .unwind('[1, 2, 3] as arr'); /* --> literal string to use */
3link
4linkconsole.log(queryBuilder.getStatement()); // UNWIND [1, 2, 3] as arr
5linkconsole.log(queryBuilder.getBindParam().get()); // {}
Unwind using an object with the value to unwind, and what to unwind as
1linkconst queryBuilder = new QueryBuilder().unwind({
2link /* --> unwind this value */
3link value: 'x',
4link /* --> as this */
5link as: 'y'
6link});
7link
8linkconsole.log(queryBuilder.getStatement()); // UNWIND x as y
9linkconsole.log(queryBuilder.getBindParam().get()); // {}