Skip to content

Commit 73b78fc

Browse files
Added example
1 parent 6e25802 commit 73b78fc

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

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

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,29 @@
11
= 42I63
22

33
== Status description
4-
error: syntax error or access rule violation - wrong subclause order. 'ORDER BY', '`{ <<clause>> }`' and 'LIMIT' can only be used in this order in 'RETURN'.
4+
error: syntax error or access rule violation - wrong subclause order. `ORDER BY`, `{ <<clause>> }` and `LIMIT` can only be used in this order in `RETURN`.
5+
6+
== Example scenario
7+
8+
For example, try to use `ORDER BY` after `SKIP` and `LIMIT`:
9+
10+
[source,cypher]
11+
----
12+
UNWIND [3,5,1,3,7,10] AS x
13+
RETURN x
14+
SKIP 2
15+
ORDER BY x
16+
----
17+
18+
You will receive an error with GQLSTATUS xref:errors/gql-errors/42000.adoc[42000].
19+
This error has a cause detailed in xref:errors/gql-errors/42I63.adoc[42I63] and status description:
20+
21+
22+
[source]
23+
----
24+
error: syntax error or access rule violation - wrong subclause order. `ORDER BY`, `SKIP` and `LIMIT` can only be used in this order in `RETURN`.
25+
----
26+
527

628
ifndef::backend-pdf[]
729
[discrete.glossary]

modules/ROOT/pages/errors/gql-errors/index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ Status description:: error: syntax error or access rule violation - missing LOOK
10321032

10331033
=== xref:errors/gql-errors/42I63.adoc[42I63]
10341034

1035-
Status description:: error: syntax error or access rule violation - wrong subclause order. 'ORDER BY', '`{ <<clause>> }`' and 'LIMIT' can only be used in this order in 'RETURN'.
1035+
Status description:: error: syntax error or access rule violation - wrong subclause order. `ORDER BY`, `{ <<clause>> }` and `LIMIT` can only be used in this order in `RETURN`.
10361036

10371037
[role=label--changed-2025.03]
10381038
=== xref:errors/gql-errors/42N00.adoc[42N00]

0 commit comments

Comments
 (0)