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['RemoveI']
A literal string will be used as is.
1linkconst queryBuilder = new QueryBuilder()
2link .remove('a.name'); /* --> literal string to use */
3link
4linkconsole.log(queryBuilder.getStatement()); // REMOVE a.name
5linkconsole.log(queryBuilder.getBindParam().get()); // {}
The properties of an identifier can be removed by using an object.
1linkconst queryBuilder = new QueryBuilder().remove({
2link /* --> the identifier whose properties will be removed */
3link identifier: 'a',
4link /* --> the properties of the identifier to remove */
5link properties: ['name', 'age']
6link});
7link
8linkconsole.log(queryBuilder.getStatement()); // REMOVE a.name, a.age
9linkconsole.log(queryBuilder.getBindParam().get()); // {}
The labels of an identifier can be removed by using an object.
1linkconst queryBuilder = new QueryBuilder().remove({
2link /* --> the identifier whose labels will be removed */
3link identifier: 'a',
4link /* --> the labels of the identifier to remove */
5link labels: ['Label1', 'Label2']
6link});
7link
8linkconsole.log(queryBuilder.getStatement()); // REMOVE a:Label1:Label2
9linkconsole.log(queryBuilder.getBindParam().get()); // {}