Skip to content

Commit 3e5a236

Browse files
committed
Add new GQLSTATUS codes 22NAA and 22NAB
1 parent bc5ce3c commit 3e5a236

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@
141141
**** xref:errors/gql-errors/22NA7.adoc[]
142142
**** xref:errors/gql-errors/22NA8.adoc[]
143143
**** xref:errors/gql-errors/22NA9.adoc[]
144+
**** xref:errors/gql-errors/22NAA.adoc[]
145+
**** xref:errors/gql-errors/22NAB.adoc[]
144146
**** xref:errors/gql-errors/22NB0.adoc[]
145147
**** xref:errors/gql-errors/22NB1.adoc[]
146148
**** xref:errors/gql-errors/22NB2.adoc[]
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
= 22NAA
2+
3+
== Status description
4+
error: data exception - invalid list for property based access control rule. The expression `{ <<expr>> }` is not supported. Lists containing `{ <<exprType>> }` values are not supported for property-based access control.
5+
6+
== Example scenario
7+
8+
For example, try to add a property based access control rule including a list with a NULL type:
9+
10+
[source,cypher]
11+
----
12+
GRANT TRAVERSE ON GRAPH * FOR (n) WHERE n.prop1 IN ["string value", NULL] TO role
13+
----
14+
15+
You will receive an error with GQLSTATUS xref:errors/gql-errors/22NA0.adoc[22NA0].
16+
This error will have a cause with GQLSTATUS 42NAA and the status description
17+
18+
19+
[source]
20+
----
21+
error: data exception - invalid list for property based access control rule. The expression 'n.prop1 IN ["string value", NULL]' is not supported. Lists containing NULL values are not supported for property-based access control.
22+
----
23+
24+
ifndef::backend-pdf[]
25+
[discrete.glossary]
26+
== Glossary
27+
28+
include::partial$glossary.adoc[]
29+
endif::[]
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
= 22NAB
2+
3+
== Status description
4+
error: data exception - mixed type list for property based access control rule. The expression `{ <<expr>> }` is not supported. All elements in a list must be literals of the same type for property-based access control.
5+
6+
== Example scenario
7+
8+
For example, try to add a property based access control rule including a list with mixed types:
9+
10+
[source,cypher]
11+
----
12+
GRANT TRAVERSE ON GRAPH * FOR (n) WHERE n.prop1 IN ["string value", 5] TO role
13+
----
14+
15+
You will receive an error with GQLSTATUS xref:errors/gql-errors/22NA0.adoc[22NA0].
16+
This error will have a cause with GQLSTATUS 42NAB and the status description
17+
18+
19+
[source]
20+
----
21+
error: data exception - mixed type list for property based access control rule. The expression 'n.prop1 IN ["string value", 5]' is not supported. All elements in a list must be literals of the same type for property-based access control.
22+
----
23+
24+
ifndef::backend-pdf[]
25+
[discrete.glossary]
26+
== Glossary
27+
28+
include::partial$glossary.adoc[]
29+
endif::[]

0 commit comments

Comments
 (0)