Skip to content

Commit 6ed983b

Browse files
2025.06
1 parent 5822372 commit 6ed983b

File tree

3 files changed

+31
-47
lines changed

3 files changed

+31
-47
lines changed

modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc

Lines changed: 26 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -21,48 +21,6 @@ Replacement syntax for deprecated and removed features are also indicated.
2121
Cypher 25 was introduced in Neo4j 2025.06 and can only be used on Neo4j 2025.06+ databases.
2222
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.
2323

24-
[[cypher-deprecations-additions-removals-2025.xx]]
25-
== Neo4j 2025.xx
26-
27-
=== New in Cypher 25
28-
29-
[cols="2", options="header"]
30-
|===
31-
| Feature
32-
| Details
33-
34-
35-
a|
36-
label:functionality[]
37-
label:new[]
38-
[source, cypher, role="noheader"]
39-
----
40-
MATCH REPEATABLE ELEMENTS p = (:B)-->{,5}()
41-
RETURN [n IN nodes(p) \| n.q] AS nodes
42-
----
43-
44-
45-
|
46-
New match mode, xref:patterns/match-modes.adoc#repeatable-elements[`REPEATABLE ELEMENTS`].
47-
This is a non-restrictive match mode, in which relationships matched across all constituent path patterns in a graph patterns can be repeatedly traversed.
48-
49-
50-
a|
51-
label:functionality[]
52-
label:new[]
53-
[source, cypher, role="noheader"]
54-
----
55-
MATCH DIFFERENT RELATIONSHIPS p = (:B)-->{,5}()
56-
RETURN [n IN nodes(p) \| n.q] AS nodes
57-
----
58-
59-
a|
60-
New keyword, xref:patterns/match-modes.adoc#different-relationships[`DIFFERENT RELATIONSHIPS`], which enables explicitly specifying Cypher's default mode.
61-
This is a restrictive match mode, which requires that all relationships matched across all constituent path patterns in a graph pattern must be unique.
62-
Specifying `DIFFERENT RELATIONSHIPS` is functionally equivalent to not specifying a match mode.
63-
64-
|===
65-
6624
[[cypher-deprecations-additions-removals-2025.06]]
6725
== Neo4j 2025.06
6826

@@ -397,6 +355,32 @@ RETURN prop
397355
----
398356
| The keyword `ALL` can now be added after a xref:clauses/with.adoc#with-all-results[WITH] as the explicit form of a `WITH` without duplicate removal.
399357

358+
a|
359+
label:functionality[]
360+
label:new[]
361+
[source, cypher, role="noheader"]
362+
----
363+
MATCH REPEATABLE ELEMENTS p = (:B)-->{,5}()
364+
RETURN [n IN nodes(p) \| n.q] AS nodes
365+
----
366+
367+
|
368+
New match mode, xref:patterns/match-modes.adoc#repeatable-elements[`REPEATABLE ELEMENTS`].
369+
This is a non-restrictive match mode, in which relationships matched across all constituent path patterns in a graph patterns can be repeatedly traversed.
370+
371+
a|
372+
label:functionality[]
373+
label:new[]
374+
[source, cypher, role="noheader"]
375+
----
376+
MATCH DIFFERENT RELATIONSHIPS p = (:B)-->{,5}()
377+
RETURN [n IN nodes(p) \| n.q] AS nodes
378+
----
379+
380+
a|
381+
New keyword, xref:patterns/match-modes.adoc#different-relationships[`DIFFERENT RELATIONSHIPS`], which enables explicitly specifying Cypher's default mode.
382+
This is a restrictive match mode, which requires that all relationships matched across all constituent path patterns in a graph pattern must be unique.
383+
Specifying `DIFFERENT RELATIONSHIPS` is functionally equivalent to not specifying a match mode.
400384

401385
|===
402386

modules/ROOT/pages/patterns/match-modes.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Cypher contains two match modes:
99
The same restriction does not hold for nodes, which may be re-traversed any number of times in a matched path.
1010
This is Cypher’s default match mode, applicable to most use cases.
1111
* xref:patterns/match-modes.adoc#repeatable-elements[`REPEATABLE ELEMENTS`]: no restrictions on how often nodes and relationships can be traversed in a match for a graph pattern.
12-
This match mode is required in order for paths to be able to traverse a relationship more than once. label:new[Introduced in Neo4j 2025.xx]
12+
This match mode is required in order for paths to be able to traverse a relationship more than once. label:new[Introduced in Neo4j 2025.06]
1313
1414
[[example-graph]]
1515
== Example graph
@@ -47,7 +47,7 @@ As such, `DIFFERENT RELATIONSHIPS` is ideal to showcase the Königsberg bridges
4747
That is, if no match mode is selected, Cypher will default to solve graph patterns according to the restrictions imposed by `DIFFERENT RELATIONSHIPS`.
4848

4949
[NOTE]
50-
The `DIFFERENT RELATIONSHIPS` keyword was released in Neo4j 2025.xx and can be used to explicitly specify Cypher's default match mode after `MATCH`.
50+
The `DIFFERENT RELATIONSHIPS` keyword was released in Neo4j 2025.06 and can be used to explicitly specify Cypher's default match mode after `MATCH`.
5151
For example, `MATCH DIFFERENT RELATIONSHIPS p = (start)--{,2}(end)`.
5252
This is functionally equivalent to not specifying a match mode.
5353

@@ -160,7 +160,7 @@ No results are returned because, when using the `DIFFERENT RELATIONSHIPS` match
160160

161161
For more information about this match mode, see xref:patterns/reference.adoc#match-modes-rules-different-relationships[Syntax & semantics -> `DIFFERENT RELATIONSHIPS`].
162162

163-
[role=label--new-2025.xx]
163+
[role=label--new-2025.06]
164164
[[repeatable-elements]]
165165
== REPEATABLE ELEMENTS
166166

modules/ROOT/pages/patterns/reference.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,7 +1623,7 @@ MATCH ()-[r]->()-->(), ()-[r]-()
16231623
A match mode specifies whether or not a relationship can be matched more than once when matching graph patterns. Cypher contains two match modes:
16241624

16251625
* xref:patterns/reference.adoc#match-modes-rules-different-relationships[`DIFFERENT RELATIONSHIPS`] (default)
1626-
* xref:patterns/reference.adoc#match-modes-rules-repeatable-elements[`REPEATABLE ELEMENTS`] label:new[Introduced in Neo4j 2025.xx]
1626+
* xref:patterns/reference.adoc#match-modes-rules-repeatable-elements[`REPEATABLE ELEMENTS`] label:new[Introduced in Neo4j 2025.06]
16271627

16281628
[[match-modes-syntax]]
16291629
=== Syntax
@@ -1660,7 +1660,7 @@ MATCH (a)-[r]-(b)-[f]-(c)-[r]-(d), // r repeated twice
16601660
MATCH (a)-[r]-(b), (c)-[r]-(d) // r repeated twice
16611661
----
16621662

1663-
The `DIFFERENT RELATIONSHIPS` keyword was released in Neo4j 2025.xx and can be used to explicitly specify Cypher's default match mode after `MATCH`.
1663+
The `DIFFERENT RELATIONSHIPS` keyword was released in Neo4j 2025.06 and can be used to explicitly specify Cypher's default match mode after `MATCH`.
16641664
Specifying the `DIFFERENT RELATIONSHIPS` keyword is functionally equivalent to not specifying a match mode.
16651665
For example, the following two `MATCH` clauses are equivalent:
16661666

0 commit comments

Comments
 (0)