You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc
+26-42Lines changed: 26 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,48 +21,6 @@ Replacement syntax for deprecated and removed features are also indicated.
21
21
Cypher 25 was introduced in Neo4j 2025.06 and can only be used on Neo4j 2025.06+ databases.
22
22
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.
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.
| 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.
399
357
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.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/patterns/match-modes.adoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Cypher contains two match modes:
9
9
The same restriction does not hold for nodes, which may be re-traversed any number of times in a matched path.
10
10
This is Cypher’s default match mode, applicable to most use cases.
11
11
* 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]
13
13
14
14
[[example-graph]]
15
15
== Example graph
@@ -47,7 +47,7 @@ As such, `DIFFERENT RELATIONSHIPS` is ideal to showcase the Königsberg bridges
47
47
That is, if no match mode is selected, Cypher will default to solve graph patterns according to the restrictions imposed by `DIFFERENT RELATIONSHIPS`.
48
48
49
49
[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`.
51
51
For example, `MATCH DIFFERENT RELATIONSHIPS p = (start)--{,2}(end)`.
52
52
This is functionally equivalent to not specifying a match mode.
53
53
@@ -160,7 +160,7 @@ No results are returned because, when using the `DIFFERENT RELATIONSHIPS` match
160
160
161
161
For more information about this match mode, see xref:patterns/reference.adoc#match-modes-rules-different-relationships[Syntax & semantics -> `DIFFERENT RELATIONSHIPS`].
0 commit comments