java.lang.Object
org.neo4j.cypherdsl.core.Operations
A set of operations.
- Since:
- 1.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionstatic Operationminus(Expression e) Creates an unary minus operation.static Operationmutate(Expression target, Expression value) Creates a+=operation.static Operationmutate(Expression target, MapExpression value) Creates a+=operation.static Expressionplus(Expression e) Creates an unary plus operation.static OperationCreates an operation removing one or more labels from a givennode.static Operationset(Expression target, Expression value) Creates a=operation.static OperationCreates an operation adding one or more labels from a givennode.
-
Method Details
-
minus
Creates an unary minus operation.- Parameters:
e- The expression to which the unary minus should be applied. We don't check if it's a numeric expression, but in hindsight to generate semantically correct Cypher, it's recommended that is one.- Returns:
- An unary minus operation.
- Since:
- 2021.2.3
-
plus
Creates an unary plus operation.- Parameters:
e- The expression to which the unary plus should be applied. We don't check if it's a numeric expression, but in hindsight to generate semantically correct Cypher, it's recommended that is one.- Returns:
- An unary plus operation.
- Since:
- 2021.2.3
-
set
Creates a=operation. The left hand side should resolve to a property or to something which has labels or types to modify and the right hand side should either be new properties or labels.- Parameters:
target- The target that should be modifiedvalue- The new value of the target- Returns:
- A new operation.
- Since:
- 2021.2.3
-
mutate
Creates a+=operation. The left hand side must resolve to a container (either a node or a relationship) of properties and the right hand side must be a map of new or updated properties- Parameters:
target- The target container that should be modifiedvalue- The new properties- Returns:
- A new operation.
- Since:
- 2020.1.5
-
mutate
Creates a+=operation. The left hand side must resolve to a container (either a node or a relationship) of properties and the right hand side must be a map of new or updated properties- Parameters:
target- The target container that should be modifiedvalue- The new properties- Returns:
- A new operation.
- Since:
- 2020.1.5
-
set
Creates an operation adding one or more labels from a givennode.- Parameters:
target- The target of the new labelslabel- The labels to be added- Returns:
- A set operation
- Since:
- 2021.2.3
-
remove
Creates an operation removing one or more labels from a givennode.- Parameters:
target- The target of the remove operationlabel- The labels to be removed- Returns:
- A remove operation
- Since:
- 2021.2.3
-