You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -166,6 +171,7 @@ More specifically, a variable imported into a `CALL` subquery will be available
166
171
In the below example, the `x` variable is imported to the inside scope of a `CALL` subquery, and is successfully referenced by the `RETURN` clause even though the preceding `WITH` neglects to list it.
167
172
168
173
.Variables cannot be de-scoped in the inner scope of a subquery
@@ -197,6 +205,7 @@ For more information, see xref:subqueries/call-subquery.adoc#import-variables[`C
197
205
In the below query, the value of the `STRING` concatenation expression is bound to a new variable `customerFullName`, and the value from the expression `chocolate.price * (1 - customer.discount)` is bound to `chocolateNetPrice`, both of which are then available in the `RETURN` clause.
198
206
199
207
.Bind values to variables
208
+
// tag::clauses_with_bind_values[]
200
209
[source, cypher]
201
210
----
202
211
MATCH (customer:Customer)-[:BUYS]->(chocolate:Product {name: 'Chocolate'})
@@ -205,6 +214,8 @@ WITH customer.firstName || ' ' || customer.lastName AS customerFullName,
@@ -261,6 +274,7 @@ In this example, the xref:functions/aggregating.adoc#functions-sum[`sum()`] func
261
274
The xref:functions/aggregating.adoc#functions-collect[`collect()`] function is used to collect each product into `LIST` values bound to the `productsBought` variable.
0 commit comments