Skip to content

Commit e65483b

Browse files
mnd999Hunterness
andauthored
Apply suggestions from code review
Co-authored-by: Therese Magnusson <[email protected]>
1 parent f61aff8 commit e65483b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This error occurs when a label is used both as an identifying label (defining a
99
A label cannot serve as both an identifying label and be referenced in an independent constraint at the same time.
1010

1111
== 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:
1313

1414
[source,cypher]
1515
----
@@ -26,7 +26,7 @@ An error will be thrown with GQLSTATUS 22NC6 and the status description:
2626
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.
2727
----
2828

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:
3030

3131
[source, cypher]
3232
----

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
= 22NC7
22

33
== 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.
56

67
== Explanation
78
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.
89
A label cannot serve as both an identifying label and be referenced in an independent constraint at the same time.
910

1011
== 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:
1213

1314
[source,cypher]
1415
----
@@ -25,7 +26,7 @@ An error will be thrown with GQLSTATUS 22NC7 and the status description:
2526
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.
2627
----
2728

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:
2930

3031
[source, cypher]
3132
----

0 commit comments

Comments
 (0)