Skip to content
Open
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 @@ -22,6 +22,35 @@ Cypher 25 was introduced in Neo4j 2025.06 and can only be used on Neo4j 2025.06+
Features removed in Cypher 25 are still available on Neo4j 2025.06+ databases either by prepending a query with `CYPHER 5` or by having Cypher 5 as the default language for the database.
For more information, see xref:queries/select-version.adoc[].

[[cypher-deprecations-additions-removals-2025.11]]
== Neo4j 2025.11

=== Updated in Cypher 25

[cols="2", options="header"]
|===
| Feature
| Details

a|
label:functionality[]
label:new[]
[source, cypher, role="noheader"]
----
RETURN coll.distinct([true, false, false, true, true, false])
RETURN coll.flatten([1, [2]]), coll.flatten([false, ['a']], 2);
RETURN coll.indexOf(['A', 'new', 'function'], 'new');
RETURN coll.insert([1, 2, 4], 2, 3);
RETURN coll.max([1.5, 2, 5.4, 0, 4]);
RETURN coll.min([1.5, 2, 5.4, 0, 4]);
RETURN coll.remove(['a', 'a', 'b', 'c', 'd'], 2);
RETURN coll.sort([3, 1, 4, 2, 'a', 'c', 'b']);
----
| Introduction of eight new collection-based Cypher functions.
For more information, see xref:functions/list.adoc[List functions - lists].

|===


[[cypher-deprecations-additions-removals-2025.10]]
== Neo4j 2025.10
Expand Down
32 changes: 32 additions & 0 deletions modules/ROOT/pages/functions/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,38 @@ Further details and examples of lists may be found in xref::values-and-types/lis

| Function | Signature | Description

1.1+| xref::functions/list.adoc#functions-coll-distinct[`coll.distinct()`]
| `coll.distinct(list :: LIST<ANY>) :: LIST<ANY>`
| Returns the given list with all duplicate values removed.

1.1+| xref::functions/list.adoc#functions-coll-flatten[`coll.flatten()`]
| `coll.flatten(list :: LIST<ANY>, depth = 1 :: INTEGER) :: LIST<ANY>`
| Returns a list flattened to the given depth.

1.1+| xref::functions/list.adoc#functions-coll-indexOf[`coll.indexOf()`]
| `coll.indexOf(list :: LIST<ANY>, value :: ANY) :: INTEGER`
| Returns the index for the first match of value in the given list, if the value is no present, -1 is returned.

1.1+| xref::functions/list.adoc#functions-coll-insert[`coll.insert()`]
| `coll.insert(list :: LIST<ANY>, index :: INTEGER, value :: ANY) :: LIST<ANY>`
| Returns a list with the given value inserted at the given index.

1.1+| xref::functions/list.adoc#functions-coll-max[`coll.max()`]
| `coll.max(list :: LIST<ANY>) :: ANY`
| Returns the largest value.

1.1+| xref::functions/list.adoc#functions-coll-min[`coll.min()`]
| `coll.min(list :: LIST<ANY>) :: ANY`
| Returns the smallest value.

1.1+| xref::functions/list.adoc#functions-coll-remove[`coll.remove()`]
| `coll.remove(list :: LIST<ANY>, index :: INTEGER) :: LIST<ANY>`
| Returns a list with the value at the given index removed.

1.1+| xref::functions/list.adoc#functions-coll-sort[`coll.sort()`]
| `coll.sort(list :: LIST<ANY>) :: LIST<ANY>`
| Returns a sorted list.

1.1+| xref::functions/list.adoc#functions-keys[`keys()`]
| `keys(input :: NODE \| RELATIONSHIP \| MAP) :: LIST<STRING>`
| Returns a `LIST<STRING>` containing the `STRING` representations for all the property names of a `MAP`, `NODE`, or `RELATIONSHIP`.
Expand Down
Loading