diff --git a/modules/ROOT/pages/functions/predicate.adoc b/modules/ROOT/pages/functions/predicate.adoc index 5c465c2cf..042db6fff 100644 --- a/modules/ROOT/pages/functions/predicate.adoc +++ b/modules/ROOT/pages/functions/predicate.adoc @@ -141,7 +141,7 @@ The below query finds `KNOWS` paths with a length of `3` where the `accumulator` Paths that do not meet this requirement are excluded, such as the path with the sequence `["Keanu Reeves (58)", "Carrie Anne Moss (55)", "Guy Pearce (55)", "Liam Neeson (70)"]` which has an aggregated `age` value of `238`. .Find aggregated ages within a boundary -// tag::functions_predicate_allreduce_boundary[] +// tag::functions_predicate_allreduce[] [source, cypher] ---- MATCH (s) (()-[:KNOWS]-(n)){3} @@ -154,7 +154,7 @@ RETURN [i IN [s] + n | i.name || " (" + toString(i.age) || ")"] AS ageSequence, reduce(acc = 0, node IN [s] + n | acc + node.age) AS aggregatedAges ORDER BY aggregatedAges ---- -// end::functions_predicate_allreduce_boundary[] +// end::functions_predicate_allreduce[] .Result [role="queryresult",options="header,footer",cols="2*