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
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,10 @@
4
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
-
When defining a graph type, node element types, and relationship element types may only define a property once.
7
+
When defining a graph type, node and relationship element types may only define a property once.
8
8
9
9
== Example scenario
10
-
For example, try to set a graph type with :
10
+
For example, try to set a graph type as follows:
11
11
12
12
[source,cypher]
13
13
----
@@ -16,14 +16,14 @@ ALTER CURRENT GRAPH TYPE SET {
16
16
}
17
17
----
18
18
19
-
An error will be thrown with GQLSTATUS 22NC1 and the status description:
19
+
The query returns an error with GQLSTATUS 22NC1 and the status description:
20
20
21
21
[source]
22
22
----
23
23
error: data exception - graph type element contains duplicated tokens. The graph type element includes a property key with name `prop` more than once.
24
24
----
25
25
26
-
This can be corrected by removing the duplicate property key definition or naming the property keys uniquely:
26
+
To fix this, remove the duplicate property key definition or uniquely name the property keys:
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/22NC2.adoc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,11 @@
4
4
error: data exception - node element type is ineffectual. The node element type `{ <<label>> }` must contain one or more implied labels, or at least one property type.
5
5
6
6
== Explanation
7
-
When defining a graph type, node element types have some effect.
7
+
When defining a graph type, node element types must have some effect; otherwise, they are not allowed.
8
8
Ineffectual node element types are not permitted.
9
9
10
10
== Example scenario
11
-
For example, try to set a graph type with :
11
+
For example, try to set a graph type as follows:
12
12
13
13
[source,cypher]
14
14
----
@@ -17,14 +17,14 @@ ALTER CURRENT GRAPH TYPE SET {
17
17
}
18
18
----
19
19
20
-
An error will be thrown with GQLSTATUS 22NC2 and the status description:
20
+
The query returns an error with GQLSTATUS 22NC2 and the status description:
21
21
22
22
[source]
23
23
----
24
24
error: data exception - node element type is ineffectual. The node element type `Node` must contain one or more implied labels, or at least one property type.
25
25
----
26
26
27
-
This can be corrected by defining at least one property type or by adding an implied label e.g.:
27
+
To fix this, define at least one property type or add an implied label, for example:
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/22NC3.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
@@ -4,7 +4,8 @@
4
4
error: data exception - relationship element type is ineffectual. The relationship element type `{ <<relType>> }` must define a source, destination, or at least one property type.
5
5
6
6
== Explanation
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:
7
+
When defining a graph type, relationship element types must have some effect.
8
+
To be effective, a relationship element type must define at least one of the following:
8
9
9
10
* A source node element type or label
10
11
* A destination node element type or label
@@ -20,14 +21,14 @@ ALTER CURRENT GRAPH TYPE SET {
20
21
}
21
22
----
22
23
23
-
An error will be thrown with GQLSTATUS 22NC3 and the status description:
24
+
The query returns an error with GQLSTATUS 22NC3 and the status description:
24
25
25
26
[source]
26
27
----
27
28
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.
28
29
----
29
30
30
-
This can be corrected by defining at least one property type or by adding a node element type e.g.:
31
+
To fix this, define at least one property type or add a node element type, for example:
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/22NC4.adoc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,11 @@ error: data exception - a label cannot both identifying and implied. The label(s
5
5
6
6
== Explanation
7
7
When defining a graph type, labels and relationships must be assigned clear roles.
8
-
A label cannot be both "identifying" (used to uniquely identify nodes) and "implied" (automatically assigned based on other schema rules) at the same time.
8
+
A label cannot be both "identifying" (to uniquely identify nodes) and "implied" (automatically assigned based on other schema rules) at the same time.
9
9
Attempting to define a label as both will result in this error, as it creates ambiguity in the schema definition and node identification process.
10
10
11
11
== Example scenario
12
-
For example, try to set a graph type which defines the node element types 'Person' and 'Student' with the label 'Person' also declared as an implied label on the 'Student' node element type:
12
+
For example, try to set a graph type which defines the node element types `Person` and `Student` with the label `Person` also declared as an implied label on the `Student` node element type as follows:
13
13
14
14
[source,cypher]
15
15
----
@@ -19,14 +19,14 @@ ALTER CURRENT GRAPH TYPE SET {
19
19
}
20
20
----
21
21
22
-
An error will be thrown with GQLSTATUS 22NC4 and the status description:
22
+
The query returns an error with GQLSTATUS 22NC4 and the status description:
23
23
24
24
[source]
25
25
----
26
26
error: data exception - a label cannot both identifying and implied. The label(s) `Person` are defined as both identifying and implied.
27
27
----
28
28
29
-
There are several ways to correct this, but one approch may be to add another label to both nodes and capture the property type on `name` there:
29
+
One way to fix this is to add another label to both nodes and capture the property type on `name` there:
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/22NC6.adoc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,10 @@ The independent constraint `{ <<constrDescrOrName>> }` is using the same label `
6
6
7
7
== Explanation
8
8
This error occurs when a label is used both as an identifying label (defining a node element type) and as part of an independent constraint.
9
-
A label cannot serve as both an identifying label and be referenced in an independent constraint at the same time.
9
+
A label cannot simultaneously serve as an identifying label and be referenced in an independent constraint.
10
10
11
11
== Example scenario
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:
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 as follows:
13
13
14
14
[source,cypher]
15
15
----
@@ -19,14 +19,14 @@ ALTER CURRENT GRAPH TYPE SET {
19
19
}
20
20
----
21
21
22
-
An error will be thrown with GQLSTATUS 22NC6 and the status description:
22
+
The query returns an error with GQLSTATUS 22NC6 and the status description:
23
23
24
24
[source]
25
25
----
26
26
error: data exception - independent constraint and node element type have the same label. The independent constraint 'Constraint( type='NODE_PROPERTY_EXISTENCE', schema=(:`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 property existence constraint as part of the node element type:
29
+
To fix this, 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-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,10 @@ The independent constraint `{ <<constrDescrOrName>> }` is using the same relatio
6
6
7
7
== Explanation
8
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.
9
-
A label cannot serve as both an identifying label and be referenced in an independent constraint at the same time.
9
+
A relationship type cannot simultaneously serve as an identifying relationship type and be referenced in an independent constraint.
10
10
11
11
== Example scenario
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
+
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 as follows:
13
13
14
14
[source,cypher]
15
15
----
@@ -19,14 +19,14 @@ ALTER CURRENT GRAPH TYPE SET {
19
19
}
20
20
----
21
21
22
-
An error will be thrown with GQLSTATUS 22NC7 and the status description:
22
+
The query returns an error with GQLSTATUS 22NC7 and the status description:
23
23
24
24
[source]
25
25
----
26
26
error: data exception - independent constraint and relationship element type have the same relationship type. The independent constraint 'Constraint( type='RELATIONSHIP_PROPERTY_TYPE', schema=()-[:`REL` {`name`}]-(), propertyType=STRING )' is using the same relationship type `REL` as a relationship element type.
27
27
----
28
28
29
-
The correct fix is to define the property type constraint as part of the relationship element type:
29
+
To fix this, define the property type constraint as part of the relationship element type:
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/22NC8.adoc
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,13 @@ error: data exception - graph type contains duplicated tokens. The graph type in
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.
8
8
Each label, relationship type, or alias must have a unique name to avoid ambiguity in the graph schema.
9
-
To resolve this error, ensure that all labels, relationship types, and aliases are uniquely named within the graph type definition.
9
+
To resolve this error, ensure all labels, relationship types, and aliases are uniquely named within the graph type definition.
10
10
11
11
== Example scenarios
12
-
12
+
Let's take the following example scenarios:
13
13
=== Aliases
14
14
15
-
Attempt to define two node element types using the same alias.
15
+
For example, try to define two node element types using the same alias as follows:
16
16
17
17
[source,cypher]
18
18
----
@@ -22,14 +22,14 @@ ALTER CURRENT GRAPH TYPE SET {
22
22
}
23
23
----
24
24
25
-
An error will be thrown with GQLSTATUS 22NC9 and the status description:
25
+
The query returns an error with GQLSTATUS 22NC9 and the status description:
26
26
27
27
[source]
28
28
----
29
29
error: data exception - graph type contains duplicated tokens. The graph type includes a label, relationship type or alias with name 'p' more than once.
30
30
----
31
31
32
-
This can be corrected by renaming one of the aliases, for example:
32
+
To fix this, rename one of the aliases, for example:
33
33
34
34
[source,cypher]
35
35
----
@@ -41,7 +41,7 @@ ALTER CURRENT GRAPH TYPE SET {
41
41
42
42
=== Identifiers
43
43
44
-
Attempt to define two relationship element types using the same relationship type.
44
+
For example, try to define two relationship element types using the same relationship type as follows:
45
45
46
46
[source,cypher]
47
47
----
@@ -51,14 +51,14 @@ ALTER CURRENT GRAPH TYPE SET {
51
51
}
52
52
----
53
53
54
-
An error will be thrown with GQLSTATUS 22NC9 and the status description:
54
+
The query returns an error with GQLSTATUS 22NC9 and the status description:
55
55
56
56
[source]
57
57
----
58
58
error: data exception - graph type contains duplicated tokens. The graph type includes a label, relationship type or alias with name ':REL' more than once.
59
59
----
60
60
61
-
In this case, the correction is to delete the duplicate relationship type definition, since they are both equivalent:
61
+
To fix this, delete the duplicate relationship type definition, since they are both equivalent:
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/22NC9.adoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Property type and existance constrains cannot be defined as inline constraints o
8
8
They should be defined as part of the property description instead.
9
9
10
10
== Example scenario
11
-
Attempt to define an existance constraint inline of a node element type as follows:
11
+
For example, try to define an existence constraint inline of a node element type as follows:
12
12
13
13
[source,cypher]
14
14
----
@@ -17,14 +17,14 @@ ALTER CURRENT GRAPH TYPE SET {
17
17
}
18
18
----
19
19
20
-
An error will be thrown with GQLSTATUS 22NCA and the status description:
20
+
The query returns an error with GQLSTATUS 22NCA and the status description:
21
21
22
22
[source]
23
23
----
24
24
error: data exception - invalid element type constraints in graph type. A node element type property existence constraint cannot be specified inline of a node element type.
0 commit comments