Skip to content

Commit 68c7281

Browse files
Lojjsrenetapopova
andcommitted
Document new GQLSTATUS 22NB9 (neo4j#303)
Introduced in neo-technology/neo4j#30884 --------- Co-authored-by: Reneta Popova <[email protected]>
1 parent 8cb078d commit 68c7281

File tree

5 files changed

+43
-1
lines changed

5 files changed

+43
-1
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@
141141
**** xref:errors/gql-errors/22NB4.adoc[]
142142
**** xref:errors/gql-errors/22NB5.adoc[]
143143
**** xref:errors/gql-errors/22NB6.adoc[]
144+
**** xref:errors/gql-errors/22NB7.adoc[]
145+
**** xref:errors/gql-errors/22NB8.adoc[]
146+
**** xref:errors/gql-errors/22NB9.adoc[]
144147
*** xref:errors/gql-errors/index.adoc#invalid-transaction-state[Invalid transaction state]
145148
**** xref:errors/gql-errors/25G02.adoc[]
146149
**** xref:errors/gql-errors/25N01.adoc[]

modules/ROOT/pages/errors/gql-errors/22N90.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
:page-role: changed-2025.05
12
= 22N90
23

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

67
ifndef::backend-pdf[]
78
[discrete.glossary]
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 `{ <<typeDescription>> }` as an inner type in this context.
6+
7+
== Example scenario
8+
9+
For example, try 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+
You will receive an error with GQLSTATUS xref:errors/gql-errors/50N11.adoc[50N11].
19+
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:
20+
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
@@ -577,6 +577,10 @@ Status description:: error: data exception - element id unsupported on composite
577577

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

580+
=== xref:errors/gql-errors/22NB9.adoc[22NB9]
581+
582+
Status description:: error: data exception - invalid inner list type. Lists cannot have `{ <<item>> }` as an inner type in this context.
583+
580584

581585
[[invalid-transaction-state]]
582586
== Invalid transaction state

modules/ROOT/partials/glossary.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
[[tokenId]]$tokenId:: Token ID.
122122
[[tokenType]]$tokenType:: One of a label, a relationship type, or a property key.
123123
[[transactionId]]$transactionId:: The transaction ID of a running query.
124+
[[typeDescription]]$typeDescription:: Freeform description of a type e.g. 'a list'.
124125
[[upper]]$upper:: The highest accepted number of a range.
125126
[[url]]$url:: A URL, for example, https://example.com.
126127
[[user]]$user:: A user name, for example, `neo4j`.

0 commit comments

Comments
 (0)