Skip to content

Commit a2d74e4

Browse files
Added example
1 parent c989967 commit a2d74e4

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

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

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,33 @@
11
= 42I64
22

33
== Status description
4-
error: syntax error or access rule violation - unsupported aggregation. `{ <<msg>> }` currently not supported after NEXT `{ <<context>> }`.
4+
error: syntax error or access rule violation - unsupported aggregation. { <<msg>> } currently not supported after `NEXT` { <<context>> }.
5+
6+
== Example scenario
7+
8+
For example, when aggregating in a `UNION` query after a `NEXT`:
9+
10+
[source,cypher]
11+
----
12+
UNWIND [1, 2] AS x
13+
RETURN x
14+
15+
NEXT
16+
17+
RETURN COUNT(x)
18+
UNION ALL
19+
RETURN COUNT(x)
20+
----
21+
22+
You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001].
23+
This error has a cause detailed in xref:errors/gql-errors/42I64.adoc[42I64] and status description:
24+
25+
26+
[source]
27+
----
28+
error: syntax error or access rule violation - unsupported aggregation. Aggregations are currently not supported in `NEXT` when used in a `UNION`.
29+
----
30+
531

632
ifndef::backend-pdf[]
733
[discrete.glossary]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ Status description:: error: syntax error or access rule violation - unsupported
10361036

10371037
=== xref:errors/gql-errors/42I64.adoc[42I64]
10381038

1039-
Status description:: error: syntax error or access rule violation - unsupported aggregation. `{ <<msg>> }` currently not supported in NEXT `{ <<context>> }`.
1039+
Status description:: error: syntax error or access rule violation - unsupported aggregation. { <<msg>> } currently not supported in `NEXT` { <<context>> }.
10401040

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

0 commit comments

Comments
 (0)