- All Superinterfaces:
Visitable
- All Known Subinterfaces:
Node,Relationship,RelationshipPattern
- All Known Implementing Classes:
NamedPath,NodeBase,QuantifiedPathPattern,QuantifiedPathPattern.TargetPattern,RelationshipBase,RelationshipChain
See PatternElement.
- Since:
- 1.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull PatternElementwhere(@Nullable Expression predicate) Creates a newPatternElementwhich including an additional filter.
-
Method Details
-
where
@Neo4jVersion(minimum="5.0") @NotNull @Contract(pure=true) default @NotNull PatternElement where(@Nullable @Nullable Expression predicate) Creates a newPatternElementwhich including an additional filter. Returnsthispattern. whenpredicateis literalnull.The pattern might be a
node patternor arelationship pattern.A
WHEREon a pattern is only supported from Neo4j 5.0 onwards.- Parameters:
predicate- the predicate to filter on- Returns:
- a new pattern element or this instance if the predicate to this method was literal
null - Throws:
UnsupportedOperationException- In cases the underlying element does not support aWHEREclause- Since:
- 2023.9.0
-