Skip to content

Commit 1faf1b8

Browse files
committed
add Jens suggestions
1 parent 0e0ea5a commit 1faf1b8

File tree

6 files changed

+51
-7
lines changed

6 files changed

+51
-7
lines changed

modules/ROOT/pages/configuration/cypher-version-configuration.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ For example, `CREATE DATABASE mydb SET DEFAULT LANGUAGE CYPHER 25` or `ALTER DAT
2121
For more details and examples, see xref:database-administration/syntax.adoc#administration-syntax-database-management[Database management command syntax] and the respective pages in the xref:database-administration/index.adoc[] section. +
2222
If not specified, the default language for the database is set to the default language of the DBMS.
2323
Setting the default language requires the `SET DATABASE DEFAULT LANGUAGE` privilege.
24+
+
25+
[NOTE]
26+
====
27+
Setting the default language to `CYPHER 25` ensures that all queries run on that database will use the version of `Cypher 25` that the database is currently running (unless you prepend your queries with `CYPHER 5`, which overrides this default).
28+
For example, a Neo4j 2025.08 database with default language `Cypher 25` will use `Cypher 25` as it exists in Neo4j 2025.08, including any changes introduced in Neo4j 2025.06, 2025.07, and 2025.08.
29+
30+
Setting the default language to `CYPHER 5` ensures that all queries run on that database will use the version of `Cypher 5` as it existed at the time of the Neo4j 2025.06 release (unless you prepend your queries with `CYPHER 25`, which overrides this default).
31+
Any changes introduced after the 2025.06 release will not affect the semantics of the query.
32+
====
2433

2534
Set the Cypher version on a per-query basis::
2635
The default language for a specific query can be set by prepending the query with the `CYPHER 5` or `CYPHER 25` keyword. +

modules/ROOT/pages/database-administration/aliases/manage-aliases-standard-databases.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,12 @@ SHOW ALIAS `remote-with-default-language` FOR DATABASE YIELD name, defaultLangua
506506
+--------------------------------------------------+
507507
----
508508

509+
[NOTE]
510+
====
511+
Setting the default language to `CYPHER 25` ensures that all queries run on that database will use the version of `Cypher 25` that the database is currently running (unless you prepend your queries with `CYPHER 5`, which overrides this default).
512+
For example, a Neo4j 2025.08 database with default language `Cypher 25` will use `Cypher 25` as it exists in Neo4j 2025.08, including any changes introduced in Neo4j 2025.06, 2025.07, and 2025.08.
513+
====
514+
509515
==== Set properties for remote database aliases
510516

511517
You can set properties for remote database aliases using the `PROPERTIES` clause of the `CREATE ALIAS` command.
@@ -644,6 +650,12 @@ ALTER ALIAS `remote-with-default-language`
644650
SET DATABASE DEFAULT LANGUAGE CYPHER 5
645651
----
646652

653+
[NOTE]
654+
====
655+
Setting the default language to `CYPHER 5` ensures that all queries run on that database will use the version of `Cypher 5` as it existed at the time of the Neo4j 2025.06 release (unless you prepend your queries with `CYPHER 25`, which overrides this default).
656+
Any changes introduced after the 2025.06 release will not affect the semantics of the query.
657+
====
658+
647659
=== Alter properties of local and remote database aliases
648660

649661
You can alter the properties of a local or remote database alias using the `SET DATABASE PROPERTIES` clause of the `ALTER ALIAS` command.

modules/ROOT/pages/database-administration/composite-databases/alter-composite-databases.adoc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ SET DEFAULT LANGUAGE CYPHER {5\|25}
2222
|===
2323

2424
[role=label--new-2025.06]
25-
== Change the default Cypher version of a composite database
25+
== Alter the default Cypher version of a composite database
2626

2727
You can change the default Cypher version of an existing composite database using the `ALTER DATABASE` command with the `SET DEFAULT LANGUAGE` clause.
2828
For example:
@@ -48,4 +48,10 @@ include::partial$/view-cypher-version.adoc[]
4848
| "system" | "CYPHER 25"
4949

5050
2+d|Rows: 5
51-
|===
51+
|===
52+
53+
[NOTE]
54+
====
55+
Setting the default language to `CYPHER 25` ensures that all queries run on that database will use the version of `Cypher 25` that the database is currently running (unless you prepend your queries with `CYPHER 5`, which overrides this default).
56+
For example, a Neo4j 2025.08 database with default language `Cypher 25` will use `Cypher 25` as it exists in Neo4j 2025.08, including any changes introduced in Neo4j 2025.06, 2025.07, and 2025.08.
57+
====

modules/ROOT/pages/database-administration/composite-databases/create-composite-databases.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ The `IF NOT EXISTS` and `OR REPLACE` parts of these commands cannot be used toge
9595

9696
[role=label--new-2025.06]
9797
[[composite-databases-default-language]]
98-
== Set the default Cypher version for a composite database
98+
== Set a default Cypher version for a composite database
9999

100100
You can set the default Cypher version for a composite database when creating it.
101101
If not specified, the default language for the composite database is set to the default language of the DBMS.
@@ -126,3 +126,9 @@ include::partial$/view-cypher-version.adoc[]
126126
|===
127127

128128
For more information about other options for configuring the Cypher version, see xref:configuration/cypher-version-configuration.adoc[Configure the Cypher default version].
129+
130+
[NOTE]
131+
====
132+
Setting the default language to `CYPHER 5` ensures that all queries run on that database will use the version of `Cypher 5` as it existed at the time of the Neo4j 2025.06 release (unless you prepend your queries with `CYPHER 25`, which overrides this default).
133+
Any changes introduced after the 2025.06 release will not affect the semantics of the query.
134+
====

modules/ROOT/pages/database-administration/standard-databases/alter-databases.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ SET ACCESS READ WRITE
102102

103103
[role=label--new-2025.06]
104104
[[alter-database-default-language]]
105-
== Alter database default Cypher version
105+
== Alter the default Cypher version of an existing database
106106

107107
You can change the default Cypher version of an existing database, including the `system` database, using the `ALTER DATABASE` command with the `SET DEFAULT LANGUAGE` clause.
108108
For example:
@@ -128,6 +128,11 @@ include::partial$/view-cypher-version.adoc[]
128128
2+d|Rows: 4
129129
|===
130130

131+
[NOTE]
132+
====
133+
Setting the default language to `CYPHER 25` ensures that all queries run on that database will use the version of `Cypher 25` that the database is currently running (unless you prepend your queries with `CYPHER 5`, which overrides this default).
134+
For example, a Neo4j 2025.08 database with default language `Cypher 25` will use `Cypher 25` as it exists in Neo4j 2025.08, including any changes introduced in Neo4j 2025.06, 2025.07, and 2025.08.
135+
====
131136

132137
[role=label--enterprise-edition label--not-on-aura]
133138
== Alter database topology

modules/ROOT/pages/database-administration/standard-databases/create-databases.adoc

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,10 @@ The `IF NOT EXISTS` and `OR REPLACE` parts of these commands cannot be used toge
373373
====
374374

375375
[role=label--new-2025.06]
376-
== Create a database with `DEFAULT LANGUAGE`
376+
== Set a default Cypher version for a standard database
377377

378378
You can set the default Cypher version for a database when creating it.
379-
If not specified, the default language for the database is set to the default language of the DBMS.
379+
If not specified, the version for that database will be set to the default Cypher version of the DBMS.
380380
For example:
381381

382382
[source, cypher]
@@ -400,4 +400,10 @@ include::partial$/view-cypher-version.adoc[]
400400
2+d|Rows: 4
401401
|===
402402

403-
For more information about other options for configuring the Cypher version, see xref:configuration/cypher-version-configuration.adoc[Configure the Cypher default version].
403+
For more information about other options for configuring the Cypher version, see xref:configuration/cypher-version-configuration.adoc[Configure the Cypher default version].
404+
405+
[NOTE]
406+
====
407+
Setting the default language to `CYPHER 25` ensures that all queries run on that database will use the version of `Cypher 25` that the database is currently running (unless you prepend your queries with `CYPHER 5`, which overrides this default).
408+
For example, a Neo4j 2025.08 database with default language `Cypher 25` will use `Cypher 25` as it exists in Neo4j 2025.08, including any changes introduced in Neo4j 2025.06, 2025.07, and 2025.08.
409+
====

0 commit comments

Comments
 (0)