Skip to content

Commit cbbe404

Browse files
reword
1 parent 5654def commit cbbe404

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/ROOT/pages/clauses/filter.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ RETURN n.name AS name, n.age AS age
124124
|===
125125

126126
[[filter-with-where]]
127-
== `FILTER` replacing `WITH * WHERE`
127+
== `FILTER` as a substitute for `WITH * WHERE`
128128

129129
Unlike `WHERE`, which relies on `MATCH`, `OPTIONAL MATCH`, or `WITH` to define its scope, `FILTER` -- being a clause rather than a subclause -- can filter queries independently of these clauses.
130130
This can make some queries more concise.
@@ -187,11 +187,11 @@ MERGE (c:Company {id: row.Id})
187187
[[limitations]]
188188
== Limitations
189189

190-
While `FILTER` replaces `WITH * WHERE <predicate>` constructs, it does not include the ability of `WITH` to manipulate the variables in scope for subsequent clauses.
190+
While `FILTER` can act as a substitute for `WITH * WHERE <predicate>` constructs, it does not include the ability of `WITH` to manipulate the variables in scope for subsequent clauses.
191191
Nor can `FILTER` alias or create new variables.
192-
In other words, `FILTER` only has the function of `WITH * WHERE <predicate>` not `WITH <selectedVariable> AS <newVariableName> WHERE <predicate>`.
192+
In other words, `FILTER` only has the function of `WITH * WHERE <predicate>` and not `WITH <selectedVariable> AS <newVariableName> WHERE <predicate>`.
193193

194-
Unlike `WHERE`, `FILTER` cannot be used to add filters to patterns.
194+
Additionally, unlike `WHERE`, `FILTER` cannot be used to add filters to patterns.
195195

196196
.`WHERE` inside a node pattern
197197
[source, cypher]

0 commit comments

Comments
 (0)