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
A literal string will be used as is.
1linkconst queryBuilder = new QueryBuilder()
2link .limit('toInteger(3 * rand()) + 1'); /* --> literal string to use */
3link
4linkconsole.log(queryBuilder.getStatement()); // LIMIT toInteger(3 * rand()) + 1
5linkconsole.log(queryBuilder.getBindParam().get()); // {}
That way, a Bind Parameter is used
1linkconst queryBuilder = new QueryBuilder().limit(5);
2link
3linkconsole.log(queryBuilder.getStatement()); // LIMIT $limit
4linkconsole.log(queryBuilder.getBindParam().get()); // { limit: 5 }
A literal string will be used as is.
1linkconst queryBuilder = new QueryBuilder()
2link .skip('toInteger(3 * rand()) + 1'); /* --> literal string to use */
3link
4linkconsole.log(queryBuilder.getStatement()); // SKIP toInteger(3 * rand()) + 1
5linkconsole.log(queryBuilder.getBindParam().get()); // {}
That way, a Bind Parameter is used
1linkconst queryBuilder = new QueryBuilder().skip(5);
2link
3linkconsole.log(queryBuilder.getStatement()); // SKIP $skip
4linkconsole.log(queryBuilder.getBindParam().get()); // { skip: 5 }