diff --git a/modules/ROOT/content-nav.adoc b/modules/ROOT/content-nav.adoc index 9d8fefe5..b1f92e35 100644 --- a/modules/ROOT/content-nav.adoc +++ b/modules/ROOT/content-nav.adoc @@ -342,6 +342,7 @@ **** xref:errors/gql-errors/42N76.adoc[] **** xref:errors/gql-errors/42N77.adoc[] **** xref:errors/gql-errors/42N78.adoc[] +**** xref:errors/gql-errors/42N79.adoc[] **** xref:errors/gql-errors/42N81.adoc[] **** xref:errors/gql-errors/42N82.adoc[] **** xref:errors/gql-errors/42N83.adoc[] diff --git a/modules/ROOT/pages/errors/gql-errors/42N79.adoc b/modules/ROOT/pages/errors/gql-errors/42N79.adoc new file mode 100644 index 00000000..c883f4a2 --- /dev/null +++ b/modules/ROOT/pages/errors/gql-errors/42N79.adoc @@ -0,0 +1,33 @@ +:page-role: new-2025.11 += 42N79 + +== Status description +error: syntax error or access rule violation - invalid `USE` clause. The `USE` clause is not required for Administration Commands. Retry the query omitting the `USE` clause and it will be routed automatically. + +== Explanation + +This error occurs when an administration command is prepended with a `USE` clause. + +== Example scenario + +For example, try to show all the databases with a `USE` clause in the query: + +[source,cypher] +---- +USE system +SHOW DATABASES +---- + +Error message will be: + +[source] +---- +error: syntax error or access rule violation - invalid `USE` clause. The `USE` clause is not required for Administration Commands. Retry the query omitting the `USE` clause and it will be routed automatically. +---- + +ifndef::backend-pdf[] +[discrete.glossary] +== Glossary + +include::partial$glossary.adoc[] +endif::[] diff --git a/modules/ROOT/pages/errors/gql-errors/index.adoc b/modules/ROOT/pages/errors/gql-errors/index.adoc index eb8cda81..56dcf737 100644 --- a/modules/ROOT/pages/errors/gql-errors/index.adoc +++ b/modules/ROOT/pages/errors/gql-errors/index.adoc @@ -1401,6 +1401,10 @@ Status description:: error: syntax error or access rule violation - missing hint Status description:: error: syntax error or access rule violation - variable already bound. Node `{ <> }` has already been bound and cannot be modified by the `{ <> }` clause. +=== xref:errors/gql-errors/42N79.adoc[42N79] + +Status description:: error: syntax error or access rule violation - invalid USE clause. The USE clause is not required for Administration Commands. Retry the query omitting the USE clause and it will be routed automatically. + === xref:errors/gql-errors/42N81.adoc[42N81] Status description:: error: syntax error or access rule violation - missing request parameter. Expected `{ <> }`, but got `{ <> }`.