Skip to content

Commit e25ea42

Browse files
committed
Update error
1 parent 1e1cbf6 commit e25ea42

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

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

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

33
== Status description
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.
4+
error: data exception - node element type is ineffectual. 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.
@@ -21,7 +21,7 @@ An error will be thrown with GQLSTATUS 22NC2 and the status description:
2121

2222
[source]
2323
----
24-
error: data exception - node element type is empty. The node element type `Node` must contain one or more implied labels, or define at least one property type.
24+
error: data exception - node element type is ineffectual. The node element type `Node` must contain one or more implied labels, or define at least one property type.
2525
----
2626

2727
This can be corrected by defining at least one property type or by adding an implied label e.g.:

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

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

33
== Status description
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.
4+
error: data exception - relationship element type is ineffectual. The relationship element type `{ <<relType>> }` must define a source or destination, or at least one property type.
55

66
== Explanation
7-
When defining a graph type, relationship element types must have some effect.
8-
Ineffectual relationship element types are not permitted.
7+
When defining a graph type, relationship element types must have some effect. To be effective, a relationship element type must define at least one of the following:
8+
9+
* A source node element type or label
10+
* A destination node element type or label
11+
* At least one property type
912

1013
== Example scenario
1114
For example, try to set a graph type with :
@@ -21,7 +24,7 @@ An error will be thrown with GQLSTATUS 22NC3 and the status description:
2124

2225
[source]
2326
----
24-
error: data exception - relationship element type is empty. The relationship element type `REL` must define a node element type for source or destination, or define at least one property type.
27+
error: data exception - relationship element type is ineffectual. The relationship element type `REL` must define a source or destination, or at least one property type.
2528
----
2629

2730
This can be corrected by defining at least one property type or by adding a node element type e.g.:

0 commit comments

Comments
 (0)