File tree Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 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[]
Original file line number Diff line number Diff line change 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::[]
Original file line number Diff line number Diff line change @@ -585,6 +585,10 @@ Status description:: error: data exception - element id unsupported on composite
585585
586586Status 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
You can’t perform that action at this time.
0 commit comments