diff --git a/modules/ROOT/pages/queries/select-version.adoc b/modules/ROOT/pages/queries/select-version.adoc index 36dc28eb0..f418409cb 100644 --- a/modules/ROOT/pages/queries/select-version.adoc +++ b/modules/ROOT/pages/queries/select-version.adoc @@ -182,12 +182,14 @@ 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[] ====== @@ -195,19 +197,21 @@ SET n = properties(r) ====== .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]]