Skip to content

Commit

Permalink
change 2025.01 to 2025.02
Browse files Browse the repository at this point in the history
  • Loading branch information
JPryce-Aklundh committed Dec 20, 2024
1 parent 8514b29 commit 85f4663
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions modules/ROOT/pages/queries/select-version.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Starting in 2025, the Neo4j server transitioned to a calendar-based versioning s
This means Neo4j will no longer use its previous semantic versioning and release pattern (e.g., 5.25, 5.26).
Instead, releases from 2025 onwards will follow a *YYYY.MM* format, beginning with version 2025.01 released in January 2025, followed by 2025.02 released in February 2025, and so on.

Cypher 25 is introduced alongside Neo4j 2025.01 and is the default language for databases running version 2025.01 later.
However, users running Neo4j version 2025.01 or later can choose to run their queries using the previous version of Cypher: Cypher 5.
Cypher 25 is introduced alongside Neo4j 2025.02 and is the default language for databases running version 2025.02 or later.
However, users running Neo4j version 2025.02 or later can choose to run their queries using the previous version of Cypher: Cypher 5.
If so, Neo4j will use Cypher as it existed at the time of the Neo4j 5.26 long-term support release.

For information about updates to Cypher in different Neo4j versions, see xref:deprecations-additions-removals-compatibility.adoc[].
Expand All @@ -23,9 +23,9 @@ For information about Cypher 5, see the link:https://neo4j.com/docs/cypher-manua
To select the Cypher version of a query, prepend it with `CYPHER <language version>`.

Selecting `CYPHER 5` ensures that the query will be executed using the language as it existed at the time of the Neo4j 5.26 long-term support release.
Any changes introduced in Neo4j 2025.01 or later will not affect the query.
Any changes introduced in Neo4j 2025.02 or later will not affect the query.

Selecting `CYPHER 25` ensures that the query will be executed using the language as it exists in the version of Neo4j that the database is currently running, provided it is on Neo4j 2025.01 or later.
Selecting `CYPHER 25` ensures that the query will be executed using the language as it exists in the version of Neo4j that the database is currently running, provided it is on Neo4j 2025.02 or later.

Below are two examples showing the two versions of Cypher behaving differently.

Expand Down Expand Up @@ -119,7 +119,7 @@ RETURN n.name

== Select the default Cypher version when creating a database

Databases created on Neo4j 2025.01 or later will have Cypher 25 as their default language.
Databases created on Neo4j 2025.02 or later will have Cypher 25 as their default language.
This is true for the link:{neo4j-docs-base-uri}/operations-manual/{page-version}/database-administration/#manage-database-systems[system, standard, and composite] Neo4j databases.

To select a different default Cypher version for a database, add `DEFAULT LANGUAGE <language version>` to the link:{neo4j-docs-base-uri}/operations-manual/{page-version}/database-administration/standard-databases/create-databases/[`CREATE DATABASE`] statement.
Expand All @@ -129,15 +129,15 @@ This can be done on any Neo4j database.
Selecting a default Cypher version on a database requires the `SET DEFAULT LANGUAGE` privilege.

Selecting `CYPHER 5` as the default database language ensures that every query run on that database uses the language as it existed at the time of the Neo4j 5.26 long-term support release.
Any changes introduced in Neo4j 2025.01 or later will not affect the query.
Any changes introduced in Neo4j 2025.02 or later will not affect the query.

.Create a database with Cypher 5 as the default language
[source, cypher]
----
CREATE DATABASE my_database DEFAULT LANGUAGE CYPHER 5
----

Selecting `CYPHER 25` ensures that the query will be executed using the language as it exists in the version of Neo4j that the database is currently running, provided it is on Neo4j 2025.01 or later.
Selecting `CYPHER 25` ensures that the query will be executed using the language as it exists in the version of Neo4j that the database is currently running, provided it is on Neo4j 2025.02 or later.

.Create a database with Cypher 25 as the default language
[source, cypher]
Expand Down

0 comments on commit 85f4663

Please sign in to comment.