diff --git a/modules/ROOT/pages/clauses/with.adoc b/modules/ROOT/pages/clauses/with.adoc index 33cf54228..3219d3d26 100644 --- a/modules/ROOT/pages/clauses/with.adoc +++ b/modules/ROOT/pages/clauses/with.adoc @@ -85,7 +85,7 @@ RETURN list 1+d|Rows: 1 |=== -In the below example, the `WITH` clause binds all matched `Customer` nodes to a new variable, `chocolateCustomers`. +In the below example, the `WITH` clause binds all matched `Customer` nodes to a new variable, `customers`. The bound nodes are `MAP` values which can then be referenced from the new variable. .Create a new variable bound to matched nodes @@ -93,8 +93,8 @@ The bound nodes are `MAP` values which can then be referenced from the new varia [source, cypher] ---- MATCH (c:Customer)-[:BUYS]->(:Product {name: 'Chocolate'}) -WITH c AS customer -RETURN customer.firstName AS chocolateCustomer +WITH c AS customers +RETURN customers.firstName AS chocolateCustomers ---- // end::clauses_with_new_variable[] @@ -102,7 +102,7 @@ RETURN customer.firstName AS chocolateCustomer .Result [role="queryresult",options="header,footer",cols="1*