Skip to content

Commit 26f513c

Browse files
committed
put back cdc.query example and move the other two under deprecated without a replacement
1 parent 75e5eb3 commit 26f513c

File tree

1 file changed

+93
-42
lines changed

1 file changed

+93
-42
lines changed

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

Lines changed: 93 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1906,57 +1906,29 @@ 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-without-replacement]
1909+
[.include-with-GQLSTATUS-deprecated-with-replacement]
19101910
======
19111911
[source,cypher]
19121912
----
1913-
CALL unsupported.dbms.shutdown
1913+
CALL cdc.query()
19141914
----
19151915

19161916
Returned GQLSTATUS code::
1917-
01N02
1917+
01N01
19181918

19191919
Returned status description::
1920-
warn: feature deprecated without replacement.
1921-
`unsupported.dbms.shutdown` is deprecated and will be removed without a replacement.
1922-
======
1923-
[.include-with-neo4j-code]
1924-
======
1925-
1926-
[source,cypher]
1927-
----
1928-
CALL unsupported.dbms.shutdown
1929-
----
1930-
1931-
Description of the returned code::
1932-
The query used a deprecated procedure: `'unsupported.dbms.shutdown'`.
1920+
warn: feature deprecated with replacement.
1921+
`cdc.query` is deprecated.
1922+
It is replaced by `db.cdc.query`.
19331923

19341924
Suggestions for improvement::
1935-
Remove the use of the deprecated procedure.
1936-
If there is a suggested replacement, update to use the replacement instead.
1937-
1938-
======
1939-
=====
1940-
1941-
.Using id() function
1942-
[.tabbed-example]
1943-
=====
1944-
[.include-with-GQLSTATUS-deprecated-without-replacement]
1945-
======
1946-
Query::
1925+
Use the new procedure name `db.cdc.query` instead of the deprecated `cdc.query`.
19471926
+
19481927
[source,cypher]
19491928
----
1950-
MATCH (a)
1951-
RETURN id(a)
1929+
CALL db.cdc.query()
19521930
----
19531931

1954-
Returned GQLSTATUS code::
1955-
01N02
1956-
1957-
Returned status description::
1958-
warn: feature deprecated without replacement.
1959-
`id` is deprecated and will be removed without a replacement.
19601932
======
19611933
[.include-with-neo4j-code]
19621934
======
@@ -1965,21 +1937,20 @@ Query::
19651937
+
19661938
[source,cypher]
19671939
----
1968-
MATCH (a)
1969-
RETURN id(a)
1940+
CALL cdc.query()
19701941
----
19711942

19721943
Description of the returned code::
1973-
The query used a deprecated function: `id`.
1944+
The query used a deprecated procedure. ('cdc.query' has been replaced by 'db.cdc.query')
19741945

19751946
Suggestions for improvement::
1976-
Use the function `elementId()` instead.
1947+
Use the new procedure name `db.cdc.query` instead of the deprecated `cdc.query`.
19771948
+
19781949
[source,cypher]
19791950
----
1980-
MATCH (a)
1981-
RETURN elementId(a)
1951+
CALL db.cdc.query()
19821952
----
1953+
19831954
======
19841955
=====
19851956

@@ -2587,6 +2558,86 @@ m|DEPRECATION
25872558
m|WARNING
25882559
|===
25892560

2561+
.Using a renamed or a deprecated procedure
2562+
[.tabbed-example]
2563+
=====
2564+
[.include-with-GQLSTATUS-deprecated-without-replacement]
2565+
======
2566+
[source,cypher]
2567+
----
2568+
CALL unsupported.dbms.shutdown()
2569+
----
2570+
2571+
Returned GQLSTATUS code::
2572+
01N02
2573+
2574+
Returned status description::
2575+
warn: feature deprecated without replacement.
2576+
`unsupported.dbms.shutdown` is deprecated and will be removed without a replacement.
2577+
======
2578+
[.include-with-neo4j-code]
2579+
======
2580+
2581+
[source,cypher]
2582+
----
2583+
CALL unsupported.dbms.shutdown()
2584+
----
2585+
2586+
Description of the returned code::
2587+
The query used a deprecated procedure: `'unsupported.dbms.shutdown'`.
2588+
2589+
Suggestions for improvement::
2590+
Remove the use of the deprecated procedure.
2591+
If there is a suggested replacement, update to use the replacement instead.
2592+
2593+
======
2594+
=====
2595+
2596+
.Using id() function
2597+
[.tabbed-example]
2598+
=====
2599+
[.include-with-GQLSTATUS-deprecated-without-replacement]
2600+
======
2601+
Query::
2602+
+
2603+
[source,cypher]
2604+
----
2605+
MATCH (a)
2606+
RETURN id(a)
2607+
----
2608+
2609+
Returned GQLSTATUS code::
2610+
01N02
2611+
2612+
Returned status description::
2613+
warn: feature deprecated without replacement.
2614+
`id` is deprecated and will be removed without a replacement.
2615+
======
2616+
[.include-with-neo4j-code]
2617+
======
2618+
2619+
Query::
2620+
+
2621+
[source,cypher]
2622+
----
2623+
MATCH (a)
2624+
RETURN id(a)
2625+
----
2626+
2627+
Description of the returned code::
2628+
The query used a deprecated function: `id`.
2629+
2630+
Suggestions for improvement::
2631+
Use the function `elementId()` instead.
2632+
+
2633+
[source,cypher]
2634+
----
2635+
MATCH (a)
2636+
RETURN elementId(a)
2637+
----
2638+
======
2639+
=====
2640+
25902641
.Using Cypher query option `connectComponentsPlanner`
25912642
[.tabbed-example]
25922643
=====

0 commit comments

Comments
 (0)