Skip to content

Commit 68fab6f

Browse files
query adaption to cypher 5
1 parent 1fe76db commit 68fab6f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ RETURN [key IN dynamicKeys | map[key]] AS dynamicValue
205205
[source, cypher]
206206
----
207207
MATCH (p:Person)
208-
LET dynamicValue = 'name'
208+
WITH p, 'name' AS dynamicValue
209209
RETURN p[dynamicValue] AS names
210210
----
211211

@@ -362,8 +362,8 @@ Map projection with a variable selector is useful when you want to project value
362362
[source, cypher]
363363
----
364364
MATCH (keanu:Person {name: 'Keanu Reeves'})
365-
LET dob = date('1964-09-02'), birthPlace = 'Beirut, Lebanon'
366-
RETURN keanu{.name, dob, birthplace} AS projectedKeanu
365+
WITH keanu, date('1964-09-02') AS dob, 'Beirut, Lebanon' AS birthPlace
366+
RETURN keanu{.name, dob, birthPlace} AS projectedKeanu
367367
----
368368
369369
.Result

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Property values can be accessed dynamically by using the subscript operator, `[]
8989
.Access properties dynamically using a variable
9090
[source, cypher]
9191
----
92-
LET nodeProperty = 'lastName'
92+
WITH 'lastName' AS nodeProperty
9393
MATCH (p:Person)
9494
RETURN p[nodeProperty] AS lastName
9595
----

modules/ROOT/pages/indexes/search-performance-indexes/using-indexes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ Total database accesses: 186, total allocated memory: 472
886886

887887
[TIP]
888888
While type predicate expressions were introduced in Neo4j 5.9, the `IS {two-colons} STRING NOT NULL` syntax only became an index-compatible predicate in Neo4j 5.15.
889-
For more information, see the page about xref:values-and-types/type-predicate.adoc[type predicate expressions].
889+
For more information, see the page about xref:expressions/predicates/type-predicate-expressions.adoc[type predicate expressions].
890890

891891
The xref:functions/string.adoc#functions-tostring[`toString`] function can also be used to convert an expression to `STRING` values, and thereby help the planner to select a text index.
892892

0 commit comments

Comments
 (0)