Skip to content

Commit b62f65f

Browse files
query fix
1 parent ea96695 commit b62f65f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/ROOT/pages/functions/predicate.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ It has access to the variable `accumulator`, but not `stepVariable`.
137137
138138
`allReduce()` is designed to optimize path expansions.
139139
140-
The below query finds `KNOWS` paths with a length of `3` where the cumulative age stays between `60` and `180`.
140+
The below query finds `KNOWS` paths with a length of `3` where the cumulative age stays between `60` and `190`.
141141
Paths exceeding this range at any step are pruned.
142-
For example, a path starting with a node whose `age` value is less than `60` is automatically excluded, as is a path with a sequence such as `["Liam Neeson (70)", "Keanu Reeves (58)", "Kathryn Bigelow (71)"]` because its aggregated `age` value exceeds `180`.
142+
For example, a path starting with a node whose `age` value is less than `60` is automatically excluded, as is a path with a sequence such as `["Liam Neeson (70)", "Keanu Reeves (58)", "Kathryn Bigelow (71)"]` because its aggregated `age` value exceeds `190`.
143143
144144
.Find aggregated ages within a boundary
145145
// tag::functions_predicate_allreduce_boundary[]
@@ -149,7 +149,7 @@ MATCH (()-[:KNOWS]-(n)){3}
149149
WHERE allReduce(
150150
acc = 0,
151151
node IN n | acc + node.age,
152-
60 < acc < 180
152+
60 < acc < 190
153153
)
154154
RETURN [i IN n | i.name || " (" + toString(i.age) || ")"] AS ageSequence,
155155
reduce(acc = 0, node IN n | acc + node.age) AS aggregatedAges

0 commit comments

Comments
 (0)