You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/22NC6.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ This error occurs when a label is used both as an identifying label (defining a
9
9
A label cannot serve as both an identifying label and be referenced in an independent constraint at the same time.
10
10
11
11
== Example scenario
12
-
For example, try to set an existance constraint on a property for the label `:Person` where `:Person` is also defined as an identifying label in the graph type:
12
+
For example, try to set a property existence constraint on a property for the label `:Person` where `:Person` is also defined as an identifying label in the graph type:
13
13
14
14
[source,cypher]
15
15
----
@@ -26,7 +26,7 @@ An error will be thrown with GQLSTATUS 22NC6 and the status description:
26
26
error: data exception - independent constraint and node element type have the same label. The independent constraint '(:`Person` {`name`})' is using the same label `Person` as a node element type.
27
27
----
28
28
29
-
The correct fix is to define the existence constraint as part of the node element type:
29
+
The correct fix is to define the property existence constraint as part of the node element type:
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/22NC7.adoc
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,15 @@
1
1
= 22NC7
2
2
3
3
== Status description
4
-
error: data exception - independent constraint and relationship element type have the same relationship type. The independent constraint `{ <<constrDescrOrName>> }` is using the same relationship type `{ <<relType>> }` as a relationship element type.
4
+
error: data exception - independent constraint and relationship element type have the same relationship type.
5
+
The independent constraint `{ <<constrDescrOrName>> }` is using the same relationship type `{ <<relType>> }` as a relationship element type.
5
6
6
7
== Explanation
7
8
This error occurs when a relationship type is used both as an identifying relationship type (defining a relationship element type) and as part of an independent constraint.
8
9
A label cannot serve as both an identifying label and be referenced in an independent constraint at the same time.
9
10
10
11
== Example scenario
11
-
For example, try to set an existence constraint on a property for the relationship type `:REL` where `:REL` is also defined as an identifying relationship type in the graph type:
12
+
For example, try to set a property type constraint on a property for the relationship type `:REL` where `:REL` is also defined as an identifying relationship type in the graph type:
12
13
13
14
[source,cypher]
14
15
----
@@ -25,7 +26,7 @@ An error will be thrown with GQLSTATUS 22NC7 and the status description:
25
26
error: data exception - independent constraint and relationship element type have the same relationship type. The independent constraint '()-[:`REL`]-()' is using the same relationship type `REL` as a relationship element type.
26
27
----
27
28
28
-
The correct fix is to define the existence constraint as part of the relationship element type:
29
+
The correct fix is to define the property type constraint as part of the relationship element type:
0 commit comments