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/22NC1.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
= 22NC1
2
2
3
3
== 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.
5
5
6
6
== Explanation
7
7
When defining a graph type, node element types, and relationship element types may only define a property once.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/22NC2.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
= 22NC2
2
2
3
3
== 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.
5
5
6
6
== Explanation
7
7
When defining a graph type, node element types have some effect.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/22NC3.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
= 22NC3
2
2
3
3
== 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.
5
5
6
6
== Explanation
7
7
When defining a graph type, relationship element types must have some effect.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/22NC5.adoc
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
= 22NC5
2
2
3
3
== 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.
5
5
6
6
== Explanation
7
7
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:
25
25
----
26
26
error: data exception - graph type element not found. The node type element referenced by '(:Node =>)' was not found.
27
27
----
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
+
----
29
36
30
37
=== Relationship element reference not found ===
31
38
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:
43
50
[source]
44
51
----
45
52
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
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/22NC9.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
= 22NC9
2
2
3
3
== 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
5
5
6
6
== Explanation
7
7
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.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/22NCA.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
= 22NCA
2
2
3
3
== 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
5
5
6
6
== Explanation
7
7
Property type and existance constrains cannot be defined as inline constraints on graph type elements.
0 commit comments