Skip to content

Commit 56e164d

Browse files
query and asci fixes
1 parent 150d8f8 commit 56e164d

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

modules/ROOT/pages/clauses/where.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ Note that any path´s including `Timothy` and `Susan` are excluded by the `WHERE
289289
1+d|Rows: 3
290290
|===
291291

292-
For more information about using `WHERE` predicates in quantified path patterns, see xref:patterns/variable-length-patterns.adoc#quantified-path-patterns-predicates[Predicated in quantified path patterns].
292+
For more information about using `WHERE` predicates in quantified path patterns, see xref:patterns/variable-length-patterns.adoc#quantified-path-patterns-predicates[Predicates in quantified path patterns].
293293

294294
`WHERE` is not allowed in variable-length patterns using the non-GQL compliant xref:patterns/reference.adoc#variable-length-relationships[variable-length relationship] syntax.
295295

modules/ROOT/pages/expressions/list-expressions.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ The subscript operator, `[]`, can be used to access specific elements in a `LIST
4444
[source, cypher]
4545
----
4646
WITH [1, 2, 3, 4] AS list
47-
RETURN list[0] AS firstElement
48-
list[2] AS thirdElement
47+
RETURN list[0] AS firstElement,
48+
list[2] AS thirdElement,
4949
list[-1] AS finalElement
5050
----
5151

@@ -377,7 +377,7 @@ If the added `LIST` is not nested, its elements are treated as individual elemen
377377
[source, cypher]
378378
----
379379
WITH [[1, 2], [3, 4]] AS nestedList
380-
RETURN nestedList + [5, 6] AS nonNestedAddition
380+
RETURN nestedList + [5, 6] AS nonNestedAddition,
381381
nestedList + [[5, 6]] AS nestedAddition
382382
----
383383

modules/ROOT/pages/expressions/mathematical-operators.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ RETURN -50 + 6 * 3 - 100 / 5 ^ 2 % 12 AS result1,
205205
|===
206206
| result1 | result2
207207

208-
| -36 | -36
208+
| -36.0 | -36.0
209209

210210
2+d|Rows: 1
211211
|===
@@ -238,7 +238,7 @@ RETURN (-50 + 6) * 3 - 100 / 5 ^ 2 % 12 AS result
238238
|===
239239
| result
240240

241-
| -136
241+
| -136.0
242242

243243
1+d|Rows: 1
244244
|===

modules/ROOT/pages/expressions/node-relationship-operators.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ RETURN p.firstName AS name
6464
.Access node and relationship properties statically
6565
[source, cypher]
6666
----
67-
MATCH (employee:Person)-[r:WORKS_FOR]-(manager:Person)
67+
MATCH (employee:Person)-[r:WORKS_FOR]->(manager:Person)
6868
RETURN employee.firstName AS employee,
6969
r.since AS employedSince,
7070
manager.firstName AS manager
@@ -111,14 +111,14 @@ RETURN p[nodeProperty] AS lastName
111111
[source, parameters]
112112
----
113113
{
114-
"propertyName": 'middleName'
114+
"propertyName": "middleName"
115115
}
116116
----
117117

118118
.Access properties dynamically using a parameter
119119
[source, cypher]
120120
----
121-
MATCH (:Person)
121+
MATCH (p:Person)
122122
RETURN p[$propertyName] AS middleName
123123
----
124124

modules/ROOT/pages/expressions/predicates/boolean-operators.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ RETURN n.name AS name, n.age AS age, n.role AS role
145145
| "Alice" | 65 | "Project manager"
146146
| "Cecil" | 25 | "Software developer"
147147
| "Cecilia" | 31 | "Software developer"
148-
| "Daniel" | 39 | "Director"
148+
| "Charlie" | 61 | "Security engineer"
149149
150-
3+d|Rows: 3
150+
3+d|Rows: 4
151151
152152
|===
153153

modules/ROOT/pages/expressions/predicates/comparison-operators.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ RETURN n.name AS name, n.age AS age
142142
2+d|Rows: 2
143143
|===
144144
145-
.Greater than or equal operator (`\=>`)
145+
.Greater than or equal operator (`>=`)
146146
[source, cypher]
147147
----
148148
MATCH (n:Person)
149-
WHERE n.age => 39
149+
WHERE n.age >= 39
150150
RETURN n.name AS name, n.age AS age
151151
----
152152
@@ -199,7 +199,7 @@ RETURN n.name AS name, n.email AS email
199199
| "Alice" | "[email protected]"
200200
| "Cecil" | "[email protected]"
201201
| "Daniel" | "[email protected]"
202-
| "Eskil" | "eskil@company.se"
202+
| "Eskil" | "eskil@company.com"
203203
204204
2+d|Rows: 4
205205
|===

modules/ROOT/pages/expressions/string-operators.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ RETURN 'Hello' || ', ' || 'World' AS result
106106
.Adding prefix, suffix, and separators in `STRING` concatenation
107107
[source, cypher]
108108
----
109-
RETURN 'My favorite fruits are: ' || 'apples' || ', ' || 'bananas' || ', and' || 'oranges' || '.' AS result
109+
RETURN 'My favorite fruits are: ' || 'apples' || ', ' || 'bananas' || ', and ' || 'oranges' || '.' AS result
110110
----
111111

112112
.Result

0 commit comments

Comments
 (0)