|
1 | 1 | [[cypher-deprecations-additions-removals-compatibility]] |
2 | | -= Deprecations, additions, and compatibility |
| 2 | += Additions, deprecations, removals, and compatibility |
3 | 3 | :description: all of the features that have been removed, deprecated, added, or extended in different Cypher versions. |
4 | 4 | :test-skip: true // all deprecations would fail. |
5 | 5 |
|
|
10 | 10 | // 4. Updated features |
11 | 11 | // 5. New features |
12 | 12 |
|
13 | | -Cypher is a language that is constantly evolving. |
| 13 | + |
| 14 | +Cypher® is a language that is constantly evolving. |
14 | 15 | New features are added to the language continuously, and occasionally, some features become deprecated and are subsequently removed. |
| 16 | +All changes to Cypher are introduced in Neo4j versions. |
| 17 | + |
| 18 | +This section lists all of the features that have been removed, deprecated, added, or extended in different versions of Neo4j. Replacement syntax for deprecated and removed features are also indicated. |
| 19 | + |
| 20 | +[IMPORTANT] |
| 21 | +==== |
| 22 | +Cypher 25 was introduced in Neo4j 2025.06 and can only be used on Neo4j 2025.06+ databases. |
| 23 | +From this release onward, no new features will be added to Cypher 5. |
| 24 | +Users of Cypher 5 must migrate their queries to Cypher 25 in order to access new features. |
| 25 | +For more information, see: |
| 26 | +
|
| 27 | +* xref:queries/select-version.adoc[] |
| 28 | +* link:https://neo4j.com/docs/cypher-manual/25/introduction/[Cypher 25 Manual] |
| 29 | +==== |
| 30 | + |
| 31 | +[[cypher-deprecations-additions-removals-2025.06]] |
| 32 | +== Neo4j 2025.06 |
| 33 | + |
| 34 | +=== Deprecated features |
| 35 | + |
| 36 | +[cols="2", options="header"] |
| 37 | +|=== |
| 38 | +| Feature |
| 39 | +| Details |
| 40 | + |
| 41 | +a| |
| 42 | +[#_graph_reference_removed_name_parts_quoting] |
| 43 | +label:functionality[] |
| 44 | +label:deprecated[] |
| 45 | +[source,cypher] |
| 46 | +---- |
| 47 | +CYPHER 5 CREATE ALIAS `foo`.`bar` FOR DATABASE ... |
| 48 | +---- |
| 49 | +| Graph references with separately backticked name parts (`++`foo`.`bar`++`) are deprecated. |
| 50 | +In future Cypher versions, use parameters or backtick the entire name (`++`foo.bar`++`). |
| 51 | + |
| 52 | +a| |
| 53 | +[#_graph_reference_updated_graph_by_name_quotes] |
| 54 | +label:functionality[] |
| 55 | +label:deprecated[] |
| 56 | +[source,cypher] |
| 57 | +---- |
| 58 | +CYPHER 5 USE graph.byName("`a.b`.c") ... |
| 59 | +---- |
| 60 | +| Graph references with separately backticked name parts (`++`a.b`.`c`++`) are deprecated. |
| 61 | +In future Cypher versions, remove the backticks (`a.b.c`). |
15 | 62 |
|
16 | | -This section lists all of the features that have been removed, deprecated, added, or extended in different Cypher versions. |
17 | | -Replacement syntax for deprecated and removed features are also indicated. |
| 63 | +|=== |
18 | 64 |
|
19 | 65 | [[cypher-deprecations-additions-removals-2025.04]] |
20 | 66 | == Neo4j 2025.04 |
@@ -246,9 +292,16 @@ label:deprecated[] |
246 | 292 | USE my.db ... |
247 | 293 |
|
248 | 294 | ---- |
249 | | -| In xref:clauses/use.adoc[`USE`] clauses, databases and aliases with unquoted `.` are deprecated unless the `.` is used to indicate that the database or alias belongs to a composite database. |
250 | | -Names containing `.` should be quoted using backticks. |
251 | | -For example, `USE `my.db`` is valid. |
| 295 | +a| The use of unquoted `.` characters in xref:clauses/use.adoc[`USE`] clauses when specifying databases and aliases was deprecated in 5.26, except when `.` indicated that the database or alias belonged to a composite database. |
| 296 | +However, this deprecation has been withdrawn in 2025.06, and replaced by two new deprecations in Cypher 5: |
| 297 | + |
| 298 | +* xref::deprecations-additions-removals-compatibility.adoc#_graph_reference_removed_name_parts_quoting[Deprecated support for quoted name parts in graph references] |
| 299 | + |
| 300 | +* xref::deprecations-additions-removals-compatibility.adoc#_graph_reference_updated_graph_by_name_quotes[Deprecation to graph functions] |
| 301 | + |
| 302 | +This is because the previous quoting rules were inconsistent and ambiguous. |
| 303 | +The rules have been clarified and improved in Cypher 25. |
| 304 | +For more information, see the link:https://neo4j.com/docs/cypher-manual/25/deprecations-additions-removals-compatibility/[Cypher 25 Manual -> Additions, deprecations, removals, and compatibility]. |
252 | 305 | |=== |
253 | 306 |
|
254 | 307 |
|
@@ -800,6 +853,19 @@ New operators: |
800 | 853 | * xref:planning-and-tuning/operators/operators-detail.adoc#query-plan-stateful-shortest-path-into[`StatefulShortestPath(Into)`] |
801 | 854 |
|
802 | 855 | a| Introduced new operators to solve xref:patterns/shortest-paths.adoc[`SHORTEST`] queries. |
| 856 | + |
| 857 | +a| |
| 858 | +label:functionality[] |
| 859 | +label:new[] |
| 860 | +[source, cypher, role="noheader"] |
| 861 | +---- |
| 862 | +CYPHER 5 |
| 863 | +RETURN 1 |
| 864 | +---- |
| 865 | + |
| 866 | +a| |
| 867 | +Introduced the ability to prepend queries with `CYPHER 5`. |
| 868 | +This ensures that a query is run using version 5 of Cypher. |
803 | 869 | |=== |
804 | 870 |
|
805 | 871 | [[cypher-deprecations-additions-removals-5.20]] |
@@ -2854,12 +2920,16 @@ label:deprecated[] |
2854 | 2920 | CREATE DATABASE databaseName.withDot ... |
2855 | 2921 | ---- |
2856 | 2922 | a| |
2857 | | -Creating a database with dots in the name has been deprecated, instead quote the database name using backticks: |
| 2923 | +Creating a database with dots in the name was deprecated in 5.0. |
| 2924 | +However, this deprecation was withdrawn in 2025.06, and replaced by two new deprecations in Cypher 5: |
2858 | 2925 |
|
2859 | | -[source, cypher, role="noheader"] |
2860 | | ----- |
2861 | | -CREATE DATABASE `databaseName.withDot` ... |
2862 | | ----- |
| 2926 | +* xref::deprecations-additions-removals-compatibility.adoc#_graph_reference_removed_name_parts_quoting[Deprecated support for quoted name parts in graph references] |
| 2927 | + |
| 2928 | +* xref::deprecations-additions-removals-compatibility.adoc#_graph_reference_updated_graph_by_name_quotes[Deprecation to graph functions] |
| 2929 | + |
| 2930 | +This because the previous quoting rules were inconsistent and ambiguous. |
| 2931 | +The rules have been clarified and improved in Cypher 25. |
| 2932 | +For more information, see the link:https://neo4j.com/docs/cypher-manual/25/deprecations-additions-removals-compatibility/[Cypher 25 Manual -> Additions, deprecations, removals, and compatibility]. |
2863 | 2933 |
|
2864 | 2934 | a| |
2865 | 2935 | [[cypher-5_0-d_4]] |
|
0 commit comments