Skip to content

Commit f926d60

Browse files
rsill-neo4jJPryce-Aklundh
authored andcommitted
fixes
1 parent 8569bee commit f926d60

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

modules/ROOT/pages/clauses/where.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ MATCH (n:Person)
6969
WHERE n.age < 35
7070
RETURN n.name AS name, n.age AS age
7171
----
72+
// end::clauses_where_boolean_operations[]
7273

7374
.Result
7475
[role="queryresult",options="header,footer",cols="2*<m"]
@@ -87,6 +88,7 @@ MATCH (:Person {name:'Andy'})-[k:KNOWS]->(f)
8788
WHERE k.since < 2000
8889
RETURN f.name AS oldFriend
8990
----
91+
// end::clauses_where_relationship_property[]
9092

9193
.Result
9294
[role="queryresult",options="header,footer",cols="1*<m"]
@@ -150,13 +152,15 @@ The above query would work if the `RETURN` clause instead referenced the `name`
150152
However, because `WHERE` is a subclause and not a clause, its scope is not limited by immediately preceding `WITH` clauses.
151153

152154
.`WHERE` is not limited by an immediately preceding `WITH`
155+
// tag::clauses_where_with[]
153156
[source, cypher]
154157
----
155158
MATCH (n:Person)
156159
WITH n.name as name
157160
WHERE n.age = 38
158161
RETURN name
159162
----
163+
// end::clauses_where_with[]
160164

161165
.Result
162166
[role="queryresult",options="header,footer",cols="1*<m"]

modules/ROOT/pages/clauses/with.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ CREATE (techCorp:Supplier {name: 'TechCorp', email: '[email protected]'}),
6161
(foodies)-[:SUPPLIES]->(chocolate),
6262
(foodies)-[:SUPPLIES]->(coffee)
6363
----
64+
// end::clauses_with_variables[]
6465

6566
[[create-new-variables]]
6667
== Create new variables
@@ -130,6 +131,7 @@ WITH c.name AS chocolateCustomers
130131
RETURN chocolateCustomers,
131132
p.price AS chocolatePrice
132133
----
134+
// end::clauses_with_wildcard[]
133135

134136
.Error message
135137
[source, error]

0 commit comments

Comments
 (0)