Skip to content

Commit a0fa067

Browse files
allreduce cheat sheet tags update (#1373)
1 parent f7f362b commit a0fa067

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

modules/ROOT/pages/functions/predicate.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ The below query finds `KNOWS` paths with a length of `3` where the `accumulator`
141141
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`.
142142
143143
.Find aggregated ages within a boundary
144-
// tag::functions_predicate_allreduce_boundary[]
144+
// tag::functions_predicate_allreduce[]
145145
[source, cypher]
146146
----
147147
MATCH (s) (()-[:KNOWS]-(n)){3}
@@ -154,7 +154,7 @@ RETURN [i IN [s] + n | i.name || " (" + toString(i.age) || ")"] AS ageSequence,
154154
reduce(acc = 0, node IN [s] + n | acc + node.age) AS aggregatedAges
155155
ORDER BY aggregatedAges
156156
----
157-
// end::functions_predicate_allreduce_boundary[]
157+
// end::functions_predicate_allreduce[]
158158
159159
.Result
160160
[role="queryresult",options="header,footer",cols="2*<m"]
@@ -171,7 +171,6 @@ The next query uses `allReduce()` to compare neighboring relationships.
171171
It finds `KNOWS` paths with a length of at least `3` where each relationship’s `since` value is greater than the previous one and above `2000`.
172172
173173
.Find paths where a relationship property must be above a value and increase along a path
174-
// tag::functions_predicate_allreduce_relationship_values[]
175174
[source, cypher]
176175
----
177176
MATCH path = ()-[r:KNOWS]-{3,}()
@@ -185,7 +184,6 @@ RETURN [actor IN people | actor.name] AS connectedActors,
185184
[rel IN r | rel.since] AS sinceYears
186185
ORDER BY sinceYears
187186
----
188-
// end::functions_predicate_allreduce_relationship_values[]
189187
190188
.Result
191189
[role="queryresult",options="header,footer",cols="2*<m"]

0 commit comments

Comments
 (0)