Skip to content

Commit 40ea219

Browse files
committed
Clarify that 42NA8 might show sub-commands
1 parent bc5ce3c commit 40ea219

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

modules/ROOT/pages/errors/gql-errors/42NA8.adoc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,31 @@
33
== Status description
44
error: syntax error or access rule violation - invalid reference in command. Invalid reference in command `{ <<cmd>> }`.
55

6+
== Example scenario
7+
8+
For example, given that `role1` exists but `role2` does not, try to grant a privilege to both roles:
9+
10+
[source,cypher]
11+
----
12+
GRANT WRITE ON GRAPH * TO role1, role2
13+
----
14+
15+
You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001].
16+
This error will have a cause with GQLSTATUS 42NA8 and the status description below.
17+
The cause has a subsequent cause with GQLSTATUS xref:errors/gql-errors/42N10.adoc[42N10].
18+
19+
20+
[source]
21+
----
22+
error: syntax error or access rule violation - invalid reference in command. Invalid reference in command `GRANT WRITE ON GRAPH * NODES * TO role2`.
23+
----
24+
25+
[NOTE]
26+
====
27+
The command in the status description might not be the exact command you typed.
28+
Internally, Neo4j administration commands are separated into more specific sub-commands and the Cypher shown corresponds to the sub-command which was executed when the error occurred.
29+
====
30+
631
ifndef::backend-pdf[]
732
[discrete.glossary]
833
== Glossary

0 commit comments

Comments
 (0)