Skip to content

Commit 59ecf20

Browse files
committed
Document new GQLSTATUS 22NB9
1 parent ba5cc44 commit 59ecf20

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
**** xref:errors/gql-errors/22NB6.adoc[]
146146
**** xref:errors/gql-errors/22NB7.adoc[]
147147
**** xref:errors/gql-errors/22NB8.adoc[]
148+
**** xref:errors/gql-errors/22NB9.adoc[]
148149
*** xref:errors/gql-errors/index.adoc#invalid-transaction-state[Invalid transaction state]
149150
**** xref:errors/gql-errors/25G02.adoc[]
150151
**** xref:errors/gql-errors/25N01.adoc[]
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
= 22NB9
2+
3+
== Status description
4+
5+
error: data exception - invalid inner list type. Lists cannot have `{ <<item>> }` as an inner type in this context.
6+
7+
== Example scenario
8+
9+
For example, when trying to create a property type constraint with a list of a union as property type:
10+
11+
[source,cypher]
12+
----
13+
CREATE CONSTRAINT myConstraint
14+
FOR (n:Label)
15+
REQUIRE n.prop IS :: LIST<INTEGER NOT NULL | FLOAT NOT NULL>
16+
----
17+
18+
The error will have GQLSTATUS xref:errors/gql-errors/50N11.adoc[50N11].
19+
The first cause in the cause chain will have GQLSTATUS xref:errors/gql-errors/22N90.adoc[22N90] and the second cause will have GQLSTATUS 22NB9.
20+
The status description of the cause with GQLSTATUS 22NB9 will be:
21+
22+
[source]
23+
----
24+
error: data exception - invalid inner list type. Lists cannot have a union of types as an inner type in this context.
25+
----
26+
27+
28+
ifndef::backend-pdf[]
29+
[discrete.glossary]
30+
== Glossary
31+
32+
include::partial$glossary.adoc[]
33+
endif::[]

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,10 @@ Status description:: error: data exception - element id unsupported on composite
585585

586586
Status description:: error: data exception - invalid Neo4j type. `{ <<input>> }` is not a recognized Neo4j type.
587587

588+
=== xref:errors/gql-errors/22NB9.adoc[22NB9]
589+
590+
error: data exception - invalid inner list type. Lists cannot have `{ <<item>> }` as an inner type in this context.
591+
588592

589593
[[invalid-transaction-state]]
590594
== Invalid transaction state

0 commit comments

Comments
 (0)