Skip to content

Commit 63bdec3

Browse files
committed
adding tags back in
1 parent bab0540 commit 63bdec3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/ROOT/pages/queries/composed-queries/sequential-queries.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ NEXT
8686
In the following example, `NEXT` passes the variable `customer` to the second query:
8787

8888
.Passing a variable to another query via `NEXT`
89+
tag::sequential_queries_basic_example[]
8990
[source,cypher]
9091
----
9192
MATCH (c:Customer)
@@ -96,6 +97,7 @@ NEXT
9697
MATCH (customer)-[:BUYS]->(:Product {name: 'Chocolate'})
9798
RETURN customer.firstName AS chocolateCustomer
9899
----
100+
end::sequential_queries_basic_example[]
99101

100102
.Result
101103
[role="queryresult",options="header,footer",cols="1*<m"]
@@ -152,6 +154,7 @@ This particularly useful when aggregating values.
152154
In the following example, `NEXT` passes the variable `customer` to the second query:
153155

154156
.Aggregation after `NEXT`
157+
tag::sequential_queries_aggregation_example[]
155158
[source,cypher]
156159
----
157160
MATCH (c:Customer)-[:BUYS]->(p:Product)
@@ -162,6 +165,7 @@ NEXT
162165
RETURN product.name AS product,
163166
COUNT(customer) AS numberOfCustomers
164167
----
168+
end::sequential_queries_aggregation_example[]
165169

166170
.Result
167171
[role="queryresult",options="header,footer",cols="2*<m"]
@@ -186,6 +190,7 @@ RETURN product.name AS product,
186190
When a `UNION` query follows a `NEXT` the full table of intermediate results are passed into all arms of the `UNION` query.
187191

188192
.`UNION` after `NEXT`
193+
tag::sequential_queries_union_example[]
189194
[source,cypher]
190195
----
191196
MATCH (c:Customer)-[:BUYS]->(p:Product)
@@ -201,6 +206,7 @@ NEXT
201206
202207
RETURN * ORDER BY name, type
203208
----
209+
end::sequential_queries_union_example[]
204210

205211
.Result
206212
[role="queryresult",options="header,footer",cols="3*<m"]

0 commit comments

Comments
 (0)