You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc
+101Lines changed: 101 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -186,6 +186,91 @@ For more information, see link:{neo4j-docs-base-uri}/operations-manual/current/d
186
186
| Feature
187
187
| Details
188
188
189
+
a|
190
+
label:functionality[]
191
+
label:new[]
192
+
193
+
[source, cypher, role="noheader"]
194
+
----
195
+
CREATE [COMPOSITE] DATABASE actors DEFAULT LANGUAGE CYPHER 25
196
+
----
197
+
198
+
a| Set the default Cypher version for a standard or composite database when creating it.
199
+
The available versions are `CYPHER 25` and `CYPHER 5`.
200
+
If not specified, the default language for the database is set to the default language of the DBMS.
201
+
For more information, see the following sections in the Operations Manual:
202
+
203
+
* link:{neo4j-docs-base-uri}/operations-manual/current/database-administration/standard-databases/create-databases/#_create_a_database_with_default_language[Create a database with a `DEFAULT LANGUAGE`].
204
+
* link:{neo4j-docs-base-uri}/operations-manual/current/database-administration/composite-databases/create-composite-databases/#composite-databases-default-language[Set the default Cypher version for a composite database].
205
+
206
+
a|
207
+
label:functionality[]
208
+
label:new[]
209
+
210
+
[source, cypher, role="noheader"]
211
+
----
212
+
CREATE ALIAS `remote-with-default-language` FOR DATABASE `northwind-graph-2020`
213
+
AT "neo4j+s://location:7687"
214
+
USER alice
215
+
PASSWORD 'example_secret'
216
+
DEFAULT LANGUAGE CYPHER 25
217
+
----
218
+
219
+
a| Set the default Cypher version for a remote database alias when creating it.
220
+
The available versions are `CYPHER 5` and `CYPHER 25`.
221
+
Local database aliases cannot be assigned a default Cypher version; they always have the Cypher version of their target database.
222
+
For more information, see the link:{neo4j-docs-base-uri}/operations-manual/current/database-administration/aliases/manage-aliases-standard-databases/#_set_a_default_cypher_version_for_remote_database_aliases[Operations Manual -> Set a default Cypher version for remote database aliases].
223
+
224
+
a|
225
+
label:functionality[]
226
+
label:new[]
227
+
[source, cypher, role="noheader"]
228
+
----
229
+
ALTER DATABASE movies SET DEFAULT LANGUAGE CYPHER 25
230
+
----
231
+
232
+
a| Alter the default Cypher version of an existing standard or composite database.
233
+
The available versions are `CYPHER 25` and `CYPHER 5`.
234
+
For more information, see the link:{neo4j-docs-base-uri}/operations-manual/current/database-administration/standard-databases/alter-databases/#alter-database-default-language[Operations Manual -> Alter database default language].
235
+
236
+
a|
237
+
label:functionality[]
238
+
label:new[]
239
+
240
+
[source, cypher, role="noheader"]
241
+
----
242
+
ALTER ALIAS `remote-with-default-language` SET DATABASE DEFAULT LANGUAGE CYPHER 5
243
+
----
244
+
245
+
a| Alter the default Cypher version of a remote database alias.
246
+
The available versions are `CYPHER 25` and `CYPHER 5`.
247
+
It is not possible to alter the default language of a local database alias; they always have the default language of their target database.
248
+
For more information, see the link:{neo4j-docs-base-uri}/operations-manual/current/database-administration/aliases/manage-aliases-standard-databases/#_alter_the_default_cypher_version_of_a_remote_database_alias[Operations Manual -> Alter the default Cypher version of a remote database alias].
249
+
250
+
a|
251
+
label:functionality[]
252
+
label:new[]
253
+
254
+
[source, cypher, role="noheader"]
255
+
----
256
+
SHOW DATABASES YIELD name, defaultLanguage
257
+
----
258
+
259
+
a| The new return column `defaultLanguage` for the `SHOW DATABASE` command returns the default language of a database.
260
+
For more information, see the link:{neo4j-docs-base-uri}/operations-manual/current/database-administration/standard-databases/listing-databases/#_show_the_default_cypher_version_of_a_database[Operations Manual -> Show the default Cypher version of a database].
261
+
262
+
a|
263
+
label:functionality[]
264
+
label:new[]
265
+
266
+
[source, cypher, role="noheader"]
267
+
----
268
+
SHOW ALIAS `remote-with-default-language` FOR DATABASE YIELD name, defaultLanguage
269
+
----
270
+
271
+
a| The new return column `defaultLanguage` for the `SHOW ALIAS` command returns the default language of a database alias.
272
+
For more information, see the link:{neo4j-docs-base-uri}/operations-manual/current/database-administration/standard-databases/listing-databases/#_show_the_default_cypher_version_of_a_database[Operations Manual -> Show the default Cypher version of a database].
273
+
189
274
a|
190
275
label:functionality[]
191
276
label:updated[]
@@ -295,6 +380,22 @@ a|
295
380
label:functionality[]
296
381
label:new[]
297
382
383
+
[source, cypher, role="noheader"]
384
+
----
385
+
CYPHER 25
386
+
MATCH (n:Person)
387
+
FILTER n.age < 35
388
+
RETURN n.name AS name
389
+
----
390
+
391
+
a| New query option: `CYPHER 25`.
392
+
Prepending a query with `CYPHER 25` ensures that a query is run with Cypher 25, regardless of the default language of a database.
393
+
(The ability to select `CYPHER 5` was introduced in Neo4j 5.21).
0 commit comments