Skip to content

Commit 3b19ee9

Browse files
authored
Add new GQLSTATUS 22NBA (#329)
Corresponding Neo4j PR: neo-technology/neo4j#31193 I tried to follow the same pattern as for 22NB9, but I did not know if it made sense to write out the status description in the example, given that it does not have any parameters. Also note, that while the Neo4j PR will be included in 2025.06, the vector feature is still under a feature flag so I am not entirely sure about the version for this docs PR
1 parent e181f58 commit 3b19ee9

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
**** xref:errors/gql-errors/22NB7.adoc[]
152152
**** xref:errors/gql-errors/22NB8.adoc[]
153153
**** xref:errors/gql-errors/22NB9.adoc[]
154+
**** xref:errors/gql-errors/22NBA.adoc[]
154155
*** xref:errors/gql-errors/index.adoc#invalid-transaction-state[Invalid transaction state]
155156
**** xref:errors/gql-errors/25G02.adoc[]
156157
**** xref:errors/gql-errors/25N01.adoc[]
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
= 22NBA
2+
3+
== Status description
4+
5+
error: data exception - omitting mandatory field for property type constraints for vectors. Property type constraints for vectors need to define both coordinate type and dimension.
6+
7+
== Example scenario
8+
9+
For example, try to create a property type constraint for a vector, omitting the dimension:
10+
11+
[source,cypher]
12+
----
13+
CREATE CONSTRAINT myConstraint
14+
FOR (n:Label)
15+
REQUIRE n.prop IS :: VECTOR<INTEGER>
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 22NBA and the status description above.
20+
21+
22+
ifndef::backend-pdf[]
23+
[discrete.glossary]
24+
== Glossary
25+
26+
include::partial$glossary.adoc[]
27+
endif::[]

0 commit comments

Comments
 (0)