Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions modules/ROOT/pages/errors/gql-errors/42N79.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
= 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 commands 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::[]
4 changes: 4 additions & 0 deletions modules/ROOT/pages/errors/gql-errors/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 `{ <<variable>> }` has already been bound and cannot be modified by the `{ <<clause>> }` clause.

=== xref:errors/gql-errors/42N79.adoc[42N79]
Copy link
Contributor

@Hunterness Hunterness Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. You might need to update modules/ROOT/content-nav.adoc to add your new code to the navigation list
  2. the index file usually gets a This file is autogenerated. You don't need to update it. from Reneta if I remember correctly :P


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 `{ <<param>> }`, but got `{ <<paramList>> }`.
Expand Down