Skip to content

Commit 854b3c3

Browse files
Add cheat sheet tags for language version options (#1330)
1 parent 26933f2 commit 854b3c3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

modules/ROOT/pages/queries/select-version.adoc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,32 +182,36 @@ It is, therefore, recommended to set the default language to Cypher 25 and migra
182182
======
183183

184184
.Cypher 25 query on a Neo4j 2025.06+ database with Cypher 5 as default language
185+
// tag::queries_select_version_cypher_25[]
185186
[source,cypher]
186187
----
187188
CYPHER 25
188189
MATCH (n:Order)-[r:SHIPPED_TO]->(:Address)
189190
SET n = properties(r)
190191
----
192+
// end::queries_select_version_cypher_25[]
191193

192194
======
193195
194196
[.include-with-Cypher-5]
195197
======
196198

197199
.Cypher 5 query on a Neo4j 2025.06+ database with Cypher 25 as default language
200+
// tag::queries_select_version_cypher_5[]
198201
[source,cypher]
199202
----
200203
CYPHER 5
201204
MATCH (n:Order)-[r:SHIPPED_TO]->(:Address)
202205
SET n = r
203206
----
207+
// end::queries_select_version_cypher_5[]
204208

205209
======
206210
=====
207211

208-
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.
212+
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.
209213

210-
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.
214+
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.
211215
Any changes introduced after the 2025.06 release will not affect the query.
212216

213217
[[procedures-and-functions]]

0 commit comments

Comments
 (0)