Skip to content

Commit d3426c8

Browse files
some cleanup
1 parent 78790d2 commit d3426c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/ROOT/pages/clauses/with.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ RETURN s.name AS company,
168168
== Bind values to variables
169169

170170
`WITH` can be used to assign the values of expressions to variables.
171-
In the below query, the value of the xref:expressions/string-operators.adoc[`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.
171+
In the below query, the value of the xref:expressions/string-operators.adoc[`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.
172172

173173
.Bind values to variables
174174
[source, cypher]
@@ -257,7 +257,7 @@ ORDER BY totalSpent DESC
257257
|===
258258
| customer | totalSpent | productsBought
259259

260-
| "Mateo" | 1015 ["Laptop", "Chocolate", "Coffee"]
260+
| "Mateo" | 1015 | ["Laptop", "Chocolate", "Coffee"]
261261
| "Amir" | 1005 | ["Laptop", "Chocolate"]
262262
| "Yusuf" | 1005 | ["Laptop", "Chocolate"]
263263
| "Leila" | 1000 | ["Laptop"]
@@ -475,7 +475,7 @@ RETURN x
475475
1+d|Rows: 4
476476
|===
477477

478-
In the below query, the `WITH * WHERE <predicate>` construct is used to filter out any `Supplier` nodes whose `totalSales` is less than `1000`.
478+
In the below query, the `WITH` and `WHERE` are used to filter out any `Supplier` nodes whose `totalSales` is less than `1000`.
479479
Note the use of `DISTINCT` inside `collect()` to remove any duplicate `Customer` nodes.
480480

481481
.Filter property values using `WITH` and `WHERE`

0 commit comments

Comments
 (0)