Skip to content

Commit 1be1f7b

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

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ For example, try to define a constraint with an empty node element type referenc
6767
----
6868
ALTER CURRENT GRAPH TYPE SET {
6969
CONSTRAINT FOR () REQUIRE n.prop IS UNIQUE
70+
}
7071
----
7172

7273
The query returns an error with GQLSTATUS 22NC5 and the status description:
@@ -81,6 +82,7 @@ In this case, the reference can be fixed by providing a label for the constraint
8182
----
8283
ALTER CURRENT GRAPH TYPE SET {
8384
CONSTRAINT FOR (n:Node) REQUIRE n.prop IS UNIQUE
85+
}
8486
----
8587

8688

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The query returns an error with GQLSTATUS 22NCB and the status description:
3131

3232
[source]
3333
----
34-
error: data exception - relationship element type already exists. A relationship element type identified by the relationship type `REL` already exists in the graph type."
34+
error: data exception - relationship element type already exists. A relationship element type identified by the relationship type `REL` already exists in the graph type.
3535
----
3636

3737
To fix this, change the query as follows:

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

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

33
== Status description
4-
error: data exception - node element type in use. The node element type identified by the label `<<label>>` is referenced in the graph type element '{ <<graphTypeReference>> }' and cannot be dropped.
4+
error: data exception - node element type in use. The node element type identified by the label `{ <<label>> }` is referenced in the graph type element '{ <<graphTypeReference>> }' and cannot be dropped.
55

66
== Explanation
77

@@ -10,7 +10,7 @@ error: data exception - node element type in use. The node element type identifi
1010
[source,cypher]
1111
----
1212
ALTER CURRENT GRAPH TYPE SET {
13-
(p:Person => {name :: STRING })
13+
(p:Person => {name :: STRING }),
1414
(p)-[:DRIVES]->(:Car)
1515
}
1616
----

modules/ROOT/pages/errors/gql-errors/index.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ Status description:: error: data exception - index belongs to constraint. Index
632632
=== xref:errors/gql-errors/22NBD.adoc[22NBD]
633633

634634
Status description:: error: data exception - unsupported struct tag. Unsupported struct tag: 0x56. `{ <<value>> }`.
635+
635636
=== xref:errors/gql-errors/22NC1.adoc[22NC1]
636637

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

0 commit comments

Comments
 (0)