Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
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
1 change: 1 addition & 0 deletions modules/ROOT/content-nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
**** xref:errors/gql-errors/22NB6.adoc[]
**** xref:errors/gql-errors/22NB7.adoc[]
**** xref:errors/gql-errors/22NB8.adoc[]
**** xref:errors/gql-errors/22NB9.adoc[]
*** xref:errors/gql-errors/index.adoc#invalid-transaction-state[Invalid transaction state]
**** xref:errors/gql-errors/25G02.adoc[]
**** xref:errors/gql-errors/25N01.adoc[]
Expand Down
33 changes: 33 additions & 0 deletions modules/ROOT/pages/errors/gql-errors/22NB9.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
= 22NB9

== Status description

error: data exception - invalid inner list type. Lists cannot have `{ <<item>> }` as an inner type in this context.

== Example scenario

For example, when trying to create a property type constraint with a list of a union as property type:

[source,cypher]
----
CREATE CONSTRAINT myConstraint
FOR (n:Label)
REQUIRE n.prop IS :: LIST<INTEGER NOT NULL | FLOAT NOT NULL>
----

The error will have GQLSTATUS xref:errors/gql-errors/50N11.adoc[50N11].
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.
The status description of the cause with GQLSTATUS 22NB9 will be:

[source]
----
error: data exception - invalid inner list type. Lists cannot have a union of types as an inner type in this context.
----


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 @@ -606,6 +606,10 @@ Status description:: error: data exception - element id unsupported on composite

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

=== xref:errors/gql-errors/22NB9.adoc[22NB9]

Status description:: error: data exception - invalid inner list type. Lists cannot have `{ <<item>> }` as an inner type in this context.


[[invalid-transaction-state]]
== Invalid transaction state
Expand Down