Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Either the pattern already exists, or it needs to be created.
| Cypher feature
| Description

| xref:values-and-types/lists.adoc#cypher-list-comprehension[List comprehension]
| xref:expressions/list-expressions.adoc#list-comprehension[List comprehension]
| Syntactic construct for creating a `LIST` based on existing lists.

| xref:values-and-types/maps.adoc#cypher-map-comprehension[Map projection]
Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/clauses/remove.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ FOREACH (i IN propertyKeys | REMOVE n[i]) // <2>
RETURN n.name, keys(n);
----

<1> The xref:functions/list.adoc#functions-keys[keys()] function retrieves all property keys of the matched nodes, and a xref:values-and-types/lists.adoc#cypher-list-comprehension[list comprehension] filters these keys to include only those that contain the substring "Test", assigning the resulting list to the variable `propertyKeys`.
<1> The xref:functions/list.adoc#functions-keys[keys()] function retrieves all property keys of the matched nodes, and a xref:expressions/list-expressions.adoc#list-comprehension[list comprehension] filters these keys to include only those that contain the substring "Test", assigning the resulting list to the variable `propertyKeys`.
<2> The xref:clauses/foreach.adoc[`FOREACH`] clause iterates over each key in the `propertyKeys` list and removes the corresponding property using the `REMOVE` clause.

All properties with the word "Test" in them are removed:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5370,7 +5370,7 @@ label:removed[]
extract()
----
a|
Replaced by xref:values-and-types/lists.adoc#cypher-list-comprehension[list comprehension].
Replaced by xref:expressions/list-expressions.adoc#list-comprehension[list comprehension].

a|
label:function[]
Expand All @@ -5380,7 +5380,7 @@ label:removed[]
filter()
----
a|
Replaced by xref:values-and-types/lists.adoc#cypher-list-comprehension[list comprehension].
Replaced by xref:expressions/list-expressions.adoc#list-comprehension[list comprehension].

a|
label:functionality[]
Expand Down Expand Up @@ -5745,7 +5745,7 @@ label:deprecated[]
extract()
----
a|
Replaced by xref:values-and-types/lists.adoc#cypher-list-comprehension[list comprehension].
Replaced by xref:expressions/list-expressions.adoc#list-comprehension[list comprehension].

a|
label:function[]
Expand All @@ -5755,7 +5755,7 @@ label:deprecated[]
filter()
----
a|
Replaced by xref:values-and-types/lists.adoc#cypher-list-comprehension[list comprehension].
Replaced by xref:expressions/list-expressions.adoc#list-comprehension[list comprehension].
|===


Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/expressions/string-operators.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ RETURN 'My favorite fruits are: ' || coalesce(reduce(acc = head(list), item IN t
1+d|Rows: 3
|===

Additionally, xref:values-and-types/lists.adoc#cypher-list-comprehension[list comprehension] allows concatenating a `STRING` value to each item in a `LIST` to generate a new `LIST` of modified `STRING` values.
Additionally, xref:expressions/list-expressions.adoc#list-comprehension[list comprehension] allows concatenating a `STRING` value to each item in a `LIST` to generate a new `LIST` of modified `STRING` values.

.List comprehension with `STRING` concatenation on `LIST` items
[source, cypher]
Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/genai-integrations.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ CALL db.create.setNodeVectorProperty(moviesList[index], 'embedding', vector) //
----

<1> xref:functions/aggregating.adoc#functions-collect[Collect] all 20 `Movie` nodes into a `LIST<NODE>`.
<2> Use a xref:values-and-types/lists.adoc#cypher-list-comprehension[list comprehension] (`[]`) to extract the `title` and `plot` properties of the movies in `moviesList` into a new `LIST<STRING>`.
<2> Use a xref:expressions/list-expressions.adoc#list-comprehension[list comprehension] (`[]`) to extract the `title` and `plot` properties of the movies in `moviesList` into a new `LIST<STRING>`.
<3> `db.create.setNodeVectorProperty` is run for each `vector` returned by `genai.vector.encodeBatch`, and stores that vector as a property named `embedding` on the corresponding node.
====

Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/subqueries/call-subquery.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ RETURN
[[call-post-union]]
== Post-union processing

Call subqueries can be used to further process the results of a xref:queries/composed-queries/combined-queries.adoc[] query.
Call subqueries can be used to further process the results of a xref:queries/composed-queries/combined-queries.adoc[`UNION`] query.

.Using `UNION` within a `CALL` subquery
====
Expand Down