Skip to content

Commit 3d6363c

Browse files
Added GQLstatus tabs
1 parent 1ca8934 commit 3d6363c

File tree

1 file changed

+55
-4
lines changed

1 file changed

+55
-4
lines changed

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

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3555,13 +3555,13 @@ m|Neo.ClientNotification.Statement.RedundantOptionalProcedure
35553555
|Title
35563556
a|The use of `OPTIONAL` is redundant when the procedure calls a void procedure.
35573557
|Description
3558-
|The use of `OPTIONAL` is redundant as `CALL $s` is a void procedure.
3558+
|The use of `OPTIONAL` is redundant as `CALL %s` is a void procedure.
35593559
|Category
35603560
m|GENERIC
3561-
||GQLSTATUS code
3561+
|GQLSTATUS code
35623562
m|03N61
35633563
|Status description
3564-
a|info: redundant optional procedure. The use of `OPTIONAL` is redundant as `CALL $s` is a void procedure.
3564+
a|info: redundant optional procedure. The use of `OPTIONAL` is redundant as `CALL %s` is a void procedure.
35653565
|Classification
35663566
m|GENERIC
35673567
|SeverityLevel
@@ -3581,7 +3581,29 @@ OPTIONAL CALL db.createLabel("A")
35813581
----
35823582

35833583
Description of the returned code::
3584-
Optional is redundant in the case of void procedures. The use of `OPTIONAL` on void procedures have no effect and can be removed.
3584+
The use of `OPTIONAL` is redundant as `CALL db.createLabel` is a void procedure.
3585+
3586+
Suggestions for improvement::
3587+
If the intended behavior of the query is to use a void procedure, the `OPTIONAL` keyword can be removed without impacting the query.
3588+
+
3589+
[source,cypher]
3590+
----
3591+
CALL db.createLabel("A")
3592+
----
3593+
======
3594+
[.include-with-GQLSTATUS-code]
3595+
======
3596+
Query::
3597+
+
3598+
[source,cypher]
3599+
----
3600+
OPTIONAL CALL db.createLabel("A")
3601+
----
3602+
Returned GQLSTATUS code::
3603+
03N61
3604+
3605+
Returned status description::
3606+
info: redundant optional procedure. The use of `OPTIONAL` is redundant as `CALL db.createLabel` is a void procedure.
35853607

35863608
Suggestions for improvement::
35873609
If the intended behavior of the query is to use a void procedure, the `OPTIONAL` keyword can be removed without impacting the query.
@@ -3635,6 +3657,35 @@ OPTIONAL CALL (x) {
36353657
Description of the returned code::
36363658
Optional is redundant in the case of a unit subquery. The use of `OPTIONAL` on unit subqueries have no effect and can be removed.
36373659

3660+
Suggestions for improvement::
3661+
If the intended behavior of the query is for the subquery not to return any values, the `OPTIONAL` keyword can be removed without impacting the query.
3662+
+
3663+
[source,cypher]
3664+
----
3665+
UNWIND [1, 2, 3] AS x
3666+
CALL (x) {
3667+
CREATE({i:x})
3668+
}
3669+
----
3670+
======
3671+
[.include-with-GQLSTATUS-code]
3672+
======
3673+
Query::
3674+
+
3675+
[source,cypher]
3676+
----
3677+
UNWIND [1, 2, 3] AS x
3678+
OPTIONAL CALL (x) {
3679+
CREATE({i:x})
3680+
}
3681+
----
3682+
3683+
Returned GQLSTATUS code::
3684+
03N62
3685+
3686+
Description of the returned code::
3687+
info: redundant optional subquery. The use of `OPTIONAL` is redundant as `CALL` is a unit subquery.
3688+
36383689
Suggestions for improvement::
36393690
If the intended behavior of the query is for the subquery not to return any values, the `OPTIONAL` keyword can be removed without impacting the query.
36403691
+

0 commit comments

Comments
 (0)