Skip to content

Commit ad88e7f

Browse files
authored
id() changed to a feature deprecated with replacement and move unsupported.dbms.shutdown example to features deprecated without a replacement (#286)
Replaces #269
1 parent f99aaa5 commit ad88e7f

File tree

1 file changed

+73
-47
lines changed

1 file changed

+73
-47
lines changed

modules/ROOT/pages/notifications/all-notifications.adoc

Lines changed: 73 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1906,11 +1906,11 @@ CREATE TEXT INDEX FOR (n:Label) ON (n.prop) OPTIONS {indexProvider : 'text-2.0'}
19061906
.Using a renamed or a deprecated procedure
19071907
[.tabbed-example]
19081908
=====
1909-
[.include-with-GQLSTATUS-deprecated-with-replacement]
1909+
[.include-with-GQLSTATUS-code]
19101910
======
19111911
[source,cypher]
19121912
----
1913-
CALL cdc.query
1913+
CALL cdc.query()
19141914
----
19151915

19161916
Returned GQLSTATUS code::
@@ -1921,43 +1921,42 @@ warn: feature deprecated with replacement.
19211921
`cdc.query` is deprecated.
19221922
It is replaced by `db.cdc.query`.
19231923

1924-
======
1925-
[.include-with-GQLSTATUS-deprecated-without-replacement]
1926-
======
1924+
Suggestions for improvement::
1925+
Use the procedure `db.cdc.query` instead.
1926+
+
19271927
[source,cypher]
19281928
----
1929-
CALL unsupported.dbms.shutdown
1929+
CALL db.cdc.query()
19301930
----
1931-
1932-
Returned GQLSTATUS code::
1933-
01N02
1934-
1935-
Returned status description::
1936-
warn: feature deprecated without replacement.
1937-
`unsupported.dbms.shutdown` is deprecated and will be removed without a replacement.
19381931
======
1932+
19391933
[.include-with-neo4j-code]
19401934
======
19411935

1936+
Query::
1937+
+
19421938
[source,cypher]
19431939
----
1944-
CALL unsupported.dbms.shutdown
1940+
CALL cdc.query()
19451941
----
19461942

19471943
Description of the returned code::
1948-
The query used a deprecated procedure: `'unsupported.dbms.shutdown'`.
1944+
The query used a deprecated procedure: `cdc.query`.
19491945

19501946
Suggestions for improvement::
1951-
Remove the use of the deprecated procedure.
1952-
If there is a suggested replacement, update to use the replacement instead.
1953-
1947+
Use the procedure `db.cdc.query` instead.
1948+
+
1949+
[source,cypher]
1950+
----
1951+
CALL db.cdc.query()
1952+
----
19541953
======
19551954
=====
19561955

19571956
.Using id() function
19581957
[.tabbed-example]
19591958
=====
1960-
[.include-with-GQLSTATUS-deprecated-with-replacement]
1959+
[.include-with-GQLSTATUS-code]
19611960
======
19621961
Query::
19631962
+
@@ -1972,8 +1971,8 @@ Returned GQLSTATUS code::
19721971

19731972
Returned status description::
19741973
warn: feature deprecated with replacement.
1975-
`id` is deprecated.
1976-
It is replaced by `elementId()`.
1974+
id is deprecated.
1975+
It is replaced by elementId or an application-generated id.
19771976

19781977
Suggestions for improvement::
19791978
Use the function `elementId()` instead.
@@ -1984,23 +1983,6 @@ MATCH (a)
19841983
RETURN elementId(a)
19851984
----
19861985
======
1987-
[.include-with-GQLSTATUS-deprecated-without-replacement]
1988-
======
1989-
Query::
1990-
+
1991-
[source,cypher]
1992-
----
1993-
MATCH (a)
1994-
RETURN id(a)
1995-
----
1996-
1997-
Returned GQLSTATUS code::
1998-
01N02
1999-
2000-
Returned status description::
2001-
warn: feature deprecated without replacement.
2002-
`id` is deprecated and will be removed without a replacement.
2003-
======
20041986
[.include-with-neo4j-code]
20051987
======
20061988

@@ -2029,7 +2011,7 @@ RETURN elementId(a)
20292011
.Using an unescaped variable named 'where' in a node pattern
20302012
[.tabbed-example]
20312013
=====
2032-
[.include-with-GQLSTATUS-deprecated-with-replacement]
2014+
[.include-with-GQLSTATUS-code]
20332015
======
20342016
Query::
20352017
+
@@ -2084,7 +2066,7 @@ RETURN `where`.p
20842066
.Using an unescaped variable named 'where' in a relationship pattern
20852067
[.tabbed-example]
20862068
=====
2087-
[.include-with-GQLSTATUS-deprecated-with-replacement]
2069+
[.include-with-GQLSTATUS-code]
20882070
======
20892071
Query::
20902072
+
@@ -2138,7 +2120,7 @@ RETURN `where`.p
21382120
.Using an unparenthesized label expression predicate as the right-hand side operand of `+`
21392121
[.tabbed-example]
21402122
=====
2141-
[.include-with-GQLSTATUS-deprecated-with-replacement]
2123+
[.include-with-GQLSTATUS-code]
21422124
======
21432125
Query::
21442126
+
@@ -2196,7 +2178,7 @@ RETURN listOfBooleans + (m:A)
21962178
.Using an unparenthesized label expression predicate as the right-hand side operand of `+`
21972179
[.tabbed-example]
21982180
=====
2199-
[.include-with-GQLSTATUS-deprecated-with-replacement]
2181+
[.include-with-GQLSTATUS-code]
22002182
======
22012183
Query::
22022184
+
@@ -2254,7 +2236,7 @@ RETURN listOfBooleans + (r:C|D)
22542236
.Using an unescaped variable named `is` as a `WHEN` operand in a simple `CASE` expression
22552237
[.tabbed-example]
22562238
=====
2257-
[.include-with-GQLSTATUS-deprecated-with-replacement]
2239+
[.include-with-GQLSTATUS-code]
22582240
======
22592241
Query::
22602242
+
@@ -2324,7 +2306,7 @@ END AS standardsName
23242306
.Using an unescaped variable named `contains` in addition operations within a `WHEN` operand in a simple `CASE` expression
23252307
[.tabbed-example]
23262308
=====
2327-
[.include-with-GQLSTATUS-deprecated-with-replacement]
2309+
[.include-with-GQLSTATUS-code]
23282310
======
23292311
Query::
23302312
+
@@ -2394,7 +2376,7 @@ END AS check
23942376
.Using an unescaped variable named `contains` in subtraction operations within a `WHEN` operand in a simple `CASE` expression
23952377
[.tabbed-example]
23962378
=====
2397-
[.include-with-GQLSTATUS-deprecated-with-replacement]
2379+
[.include-with-GQLSTATUS-code]
23982380
======
23992381
Query::
24002382
+
@@ -2465,7 +2447,7 @@ END AS check
24652447
.Using the `[]` operator on an unescaped variable named `in` within a `WHEN` operand in a simple `CASE` expression
24662448
[.tabbed-example]
24672449
=====
2468-
[.include-with-GQLSTATUS-deprecated-with-replacement]
2450+
[.include-with-GQLSTATUS-code]
24692451
======
24702452
Query::
24712453
+
@@ -2536,7 +2518,7 @@ END AS check
25362518
.Using the `[]` operator on an unescaped variable named `in` within a `WHEN` operand in a simple `CASE` expression
25372519
[.tabbed-example]
25382520
=====
2539-
[.include-with-GQLSTATUS-deprecated-with-replacement]
2521+
[.include-with-GQLSTATUS-code]
25402522
======
25412523
Query::
25422524
+
@@ -2665,6 +2647,50 @@ For more information, see link:https://neo4j.com/docs/cypher-manual/current/quer
26652647
======
26662648
=====
26672649

2650+
.Using a deprecated procedure
2651+
[.tabbed-example]
2652+
=====
2653+
[.include-with-GQLSTATUS-code]
2654+
======
2655+
Query::
2656+
+
2657+
[source,cypher]
2658+
----
2659+
CALL unsupported.dbms.shutdown()
2660+
----
2661+
2662+
Returned GQLSTATUS code::
2663+
01N02
2664+
2665+
Returned status description::
2666+
warn: feature deprecated without replacement.
2667+
`unsupported.dbms.shutdown` is deprecated and will be removed without a replacement.
2668+
2669+
Suggestions for improvement::
2670+
Remove the use of the deprecated procedure.
2671+
If there is a suggested replacement, update to use the replacement instead.
2672+
2673+
======
2674+
[.include-with-neo4j-code]
2675+
======
2676+
2677+
Query::
2678+
+
2679+
[source,cypher]
2680+
----
2681+
CALL unsupported.dbms.shutdown()
2682+
----
2683+
2684+
Description of the returned code::
2685+
The query used a deprecated procedure: `'unsupported.dbms.shutdown'`.
2686+
2687+
Suggestions for improvement::
2688+
Remove the use of the deprecated procedure.
2689+
If there is a suggested replacement, update to use the replacement instead.
2690+
2691+
======
2692+
=====
2693+
26682694
[[_deprecated-procedure-result-column]]
26692695
=== Procedure field deprecated
26702696

0 commit comments

Comments
 (0)