Skip to content
Merged
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
8 changes: 6 additions & 2 deletions modules/ROOT/pages/queries/select-version.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -182,32 +182,36 @@ It is, therefore, recommended to set the default language to Cypher 25 and migra
======

.Cypher 25 query on a Neo4j 2025.06+ database with Cypher 5 as default language
// tag::queries_select_version_cypher_25[]
[source,cypher]
----
CYPHER 25
MATCH (n:Order)-[r:SHIPPED_TO]->(:Address)
SET n = properties(r)
----
// end::queries_select_version_cypher_25[]

======

[.include-with-Cypher-5]
======

.Cypher 5 query on a Neo4j 2025.06+ database with Cypher 25 as default language
// tag::queries_select_version_cypher_5[]
[source,cypher]
----
CYPHER 5
MATCH (n:Order)-[r:SHIPPED_TO]->(:Address)
SET n = r
----
// end::queries_select_version_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.06 or later.
Selecting `CYPHER 25` ensures that the query will be executed using Cypher 25 as it exists in the version of Neo4j that the database is currently running, provided it is on Neo4j 2025.06 or later.

Selecting `CYPHER 5` ensures that the query will be executed using the language as it existed at the time of the Neo4j 2025.06 release.
Selecting `CYPHER 5` ensures that the query will be executed using Cypher 5 as it existed at the time of the Neo4j 2025.06 release.
Any changes introduced after the 2025.06 release will not affect the query.

[[procedures-and-functions]]
Expand Down