Skip to content

Commit ce667fb

Browse files
mnd999renetapopova
authored andcommitted
Update status descriptions
1 parent db6eb72 commit ce667fb

File tree

8 files changed

+25
-9
lines changed

8 files changed

+25
-9
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 22NC1
22

33
== Status description
4-
The graph type element includes a property key with name `{ <<propKey>> }` more than once.
4+
error: data exception - graph type element contains duplicated tokens. The graph type element includes a property key with name `{ <<propKey>> }` more than once.
55

66
== Explanation
77
When defining a graph type, node element types, and relationship element types may only define a property once.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 22NC2
22

33
== Status description
4-
The node element type `{ <<label>> }` must contain one or more implied labels, or define at least one property type.
4+
error: data exception - node element type is empty. The node element type `{ <<label>> }` must contain one or more implied labels, or define at least one property type.
55

66
== Explanation
77
When defining a graph type, node element types have some effect.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 22NC3
22

33
== Status description
4-
The relationship element type `{ <<relType>> }` must define a node element type for source or destination, or define at least one property type.
4+
error: data exception - relationship element type is empty. The relationship element type `{ <<relType>> }` must define a node element type for source or destination, or define at least one property type.
55

66
== Explanation
77
When defining a graph type, relationship element types must have some effect.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 22NC4
22

33
== Status description
4-
The label(s) `{ <<labelList>> }` are defined as both identifying and implied.
4+
error: data exception - a label cannot both identifying and implied. The label(s) `{ <<labelList>> }` are defined as both identifying and implied.
55

66
== Explanation
77
When defining a graph type, labels and relationships must be assigned clear roles.

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 22NC5
22

33
== Status description
4-
The `{ <<entityType>> }` element type referenced by `{ <<graphTypeReference>> }` was not found.
4+
error: data exception - graph type element not found. The `{ <<entityType>> }` element type referenced by `{ <<graphTypeReference>> }` was not found.
55

66
== Explanation
77
This error occurs when a graph type definition references an element type (such as a node or relationship) using an alias that has not been defined, or by an identifying reference where there is no graph type element identified by that reference.
@@ -25,7 +25,14 @@ An error will be thrown with GQLSTATUS 22NC5 and the status description:
2525
----
2626
error: data exception - graph type element not found. The node type element referenced by '(:Node =>)' was not found.
2727
----
28-
In this case, the reference could be corrected to be non-identifying, or the node type element could be defined before this operation.
28+
In this case, the reference could be corrected to be non-identifying, or the node type element could be defined before this operation:
29+
30+
[source,cypher]
31+
----
32+
ALTER CURRENT GRAPH TYPE SET {
33+
(:Node)-[e:REL => { prop :: STRING }]->()
34+
}
35+
----
2936

3037
=== Relationship element reference not found ===
3138
For example, try to set a graph type with a relationship element reference that does not exist:
@@ -43,6 +50,15 @@ An error will be thrown with GQLSTATUS 22NC5 and the status description:
4350
[source]
4451
----
4552
error: data exception - graph type element not found. The relationship type element referenced by 'b' was not found.
53+
----
54+
In this case, the reference could be corrected by providing a relationship type:
55+
56+
[source,cypher]
57+
----
58+
ALTER CURRENT GRAPH TYPE SET {
59+
CONSTRAINT FOR ()-[b:REL]->() REQUIRE (b.prop) IS KEY
60+
}
61+
4662
----
4763

4864
ifndef::backend-pdf[]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 22NC8
22

33
== Status description
4-
The empty node type `()` is not a valid target for a constraint
4+
error: data exception - constraint does not have a label or relationship type. The empty node type `()` is not a valid target for a constraint
55

66
== Explanation
77
This error occurs when you attempt to define a constraint on an empty node type.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 22NC9
22

33
== Status description
4-
The graph type includes a label, relationship type or alias with name `{ <<token>> }` more than once
4+
error: data exception - graph type contains duplicated tokens. The graph type includes a label, relationship type or alias with name `{ <<token>> }` more than once
55

66
== Explanation
77
This error occurs when a graph type definition attempts to use the same name for more than one label, relationship type, or alias within the same scope.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 22NCA
22

33
== Status description
4-
A `{ <<entityType>> }` element type property `{ <<context>> }` constraint cannot be specified inline of a `{ <<entityType2>> }` element type
4+
error: data exception - invalid element type constraints in graph type. A `{ <<entityType>> }` element type property `{ <<context>> }` constraint cannot be specified inline of a `{ <<entityType2>> }` element type
55

66
== Explanation
77
Property type and existance constrains cannot be defined as inline constraints on graph type elements.

0 commit comments

Comments
 (0)