Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 2 additions & 1 deletion modules/ROOT/pages/errors/gql-errors/22N90.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
:page-role: changed-2025.05
= 22N90

== Status description
error: data exception - property type unsupported in constraint. `{ <<item>> }` is not supported in property type constraints.
error: data exception - property type unsupported in constraint. `{ <<valueType>> }` is not supported in property type constraints.

ifndef::backend-pdf[]
[discrete.glossary]
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 `{ <<typeDescription>> }` as an inner type in this context.

== Example scenario

For example, try 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>
----

You will receive an error with GQLSTATUS xref:errors/gql-errors/50N11.adoc[50N11].
This error has a cause detailed in xref:errors/gql-errors/22N90.adoc[22N90], which also has a subsequent cause with GQLSTATUS 22NB9 and status description:


[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
1 change: 1 addition & 0 deletions modules/ROOT/partials/glossary.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
[[tokenId]]$tokenId:: Token ID.
[[tokenType]]$tokenType:: One of a label, a relationship type, or a property key.
[[transactionId]]$transactionId:: The transaction ID of a running query.
[[typeDescription]]$typeDescription:: Freeform description of a type e.g. 'a list'.
[[upper]]$upper:: The highest accepted number of a range.
[[url]]$url:: A URL, for example, https://example.com.
[[user]]$user:: A user name, for example, `neo4j`.
Expand Down