Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/ROOT/pages/errors/gql-errors/22NC1.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
:page-role: new-2025.x cypher-25
= 22NC1

== Status description
Expand Down
1 change: 1 addition & 0 deletions modules/ROOT/pages/errors/gql-errors/22NC2.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
:page-role: new-2025.x cypher-25
= 22NC2

== Status description
Expand Down
1 change: 1 addition & 0 deletions modules/ROOT/pages/errors/gql-errors/22NC3.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
:page-role: new-2025.x cypher-25
= 22NC3

== Status description
Expand Down
1 change: 1 addition & 0 deletions modules/ROOT/pages/errors/gql-errors/22NC4.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
:page-role: new-2025.x cypher-25
= 22NC4

== Status description
Expand Down
1 change: 1 addition & 0 deletions modules/ROOT/pages/errors/gql-errors/22NC5.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
:page-role: new-2025.x cypher-25
= 22NC5

== Status description
Expand Down
1 change: 1 addition & 0 deletions modules/ROOT/pages/errors/gql-errors/22NC6.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
:page-role: new-2025.x cypher-25
= 22NC6

== Status description
Expand Down
1 change: 1 addition & 0 deletions modules/ROOT/pages/errors/gql-errors/22NC7.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
:page-role: new-2025.x cypher-25
= 22NC7

== Status description
Expand Down
1 change: 1 addition & 0 deletions modules/ROOT/pages/errors/gql-errors/22NC8.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
:page-role: new-2025.x cypher-25
= 22NC8

== Status description
Expand Down
1 change: 1 addition & 0 deletions modules/ROOT/pages/errors/gql-errors/22NC9.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
:page-role: new-2025.x cypher-25
= 22NC9

== Status description
Expand Down
1 change: 1 addition & 0 deletions modules/ROOT/pages/errors/gql-errors/22NCA.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
:page-role: new-2025.x cypher-25
= 22NCA

== Status description
Expand Down
1 change: 1 addition & 0 deletions modules/ROOT/pages/errors/gql-errors/22NCB.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
:page-role: new-2025.x cypher-25
= 22NCB

== Status description
Expand Down
6 changes: 4 additions & 2 deletions modules/ROOT/pages/errors/gql-errors/22NCC.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
:page-role: new-2025.x cypher-25
= 22NCC

== Status description
Expand All @@ -6,10 +7,11 @@ error: data exception - node element type specified incorrectly. The node elemen
== Explanation
This error occurs when attempting to drop a node element type from the graph type, but the specified element type does not match the existing one for the given label.

When dropping an element type, it is not necessary to specify the full element type; you can simply specify the label. If you do specify an element type, it must match exactly with the existing one in the graph type.
When dropping an element type, it is not necessary to specify the full element type; you can simply specify the label.
If you do specify an element type, it must match exactly with the existing one in the graph type.

== Example scenario

Given the following graph type:
[source,cypher]
----
ALTER CURRENT GRAPH TYPE SET {
Expand Down
6 changes: 4 additions & 2 deletions modules/ROOT/pages/errors/gql-errors/22NCD.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
:page-role: new-2025.x cypher-25
= 22NCD

== Status description
Expand All @@ -6,10 +7,11 @@ error: data exception - relationship element type specified incorrectly. The rel
== Explanation
This error occurs when attempting to drop a relationship element type from the graph type, but the specified element type does not match the existing one for the given relationship type.

When dropping an element type, it is not necessary to specify the full element type; you can simply specify the relationship type. If you do specify an element type, it must match exactly with the existing one in the graph type.
When dropping an element type, it is not necessary to specify the full element type; you can simply specify the relationship type.
If you do specify an element type, it must match exactly with the existing one in the graph type.

== Example scenario

Given the following graph type:
[source,cypher]
----
ALTER CURRENT GRAPH TYPE SET {
Expand Down
6 changes: 4 additions & 2 deletions modules/ROOT/pages/errors/gql-errors/22NCE.adoc
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
:page-role: new-2025.x cypher-25
= 22NCE

== Status description
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.

== Explanation
This error occurs when attempting to drop a node element type from the graph type, but the node element type is still being referenced by a relationship element type in the graph type. To successfully drop the node element type, you must first drop any relationship element types that reference it, or remove it from the relationship element types.
This error occurs when attempting to drop a node element type from the graph type, but the node element type is still being referenced by a relationship element type in the graph type.
To successfully drop the node element type, you must first drop any relationship element types that reference it or remove it from the relationship element types.

== Example scenario

Given the following graph type:
[source,cypher]
----
ALTER CURRENT GRAPH TYPE SET {
Expand Down
15 changes: 8 additions & 7 deletions modules/ROOT/pages/errors/gql-errors/22NCF.adoc
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
:page-role: new-2025.x
= 22NCF

== Status description
error: data exception - graph type constraint not supported. Graph type constraint definitions are not supported in the `{ <<graphTypeOperation>> }` operation.

== Explanation
This error occurs when an attempt is made to specify a graph type constraint using the DROP or ALTER operations, which does not support such operations.
Graph type constraints may only be dropped by name when using the DROP operation, and are completely invalid when using ALTER.
This error occurs when you try to specify a graph type constraint using the `DROP` or `ALTER` operations, which does not support such operations.
Graph type constraints may only be dropped by name when using the `DROP` operation, and are completely invalid when using `ALTER`.
This also applies to graph type constraints defined inline of the graph type elements using `IS KEY` and `IS UNIQUE`.

== Example scenario

=== ALTER existing constraint
=== `ALTER` an existing constraint

Given the existing graph type:

Expand Down Expand Up @@ -51,7 +52,7 @@ ALTER CURRENT GRAPH TYPE ADD {
}
----

=== Remove a KEY constraint using ALTER
=== Remove a `KEY` constraint using `ALTER`

Given the existing graph type:

Expand Down Expand Up @@ -84,14 +85,14 @@ To fix this, change the query as follows:
[source, cypher]
----
ALTER CURRENT GRAPH TYPE ADD {
CONSTRAINT nameForKeyConstraint FOR (p:Person) REQUIRE p.name :: STRING IS KEY
CONSTRAINT nameForKeyConstraint FOR (p:Person) REQUIRE p.name IS KEY
}

----

=== DROP
=== `DROP` an undesignated constraint

In this example we attempt to drop an undesignated constraint with an ALTER CURRENT GRAPH TYPE DROP query.
For example, try to drop an undesignated constraint with an `ALTER CURRENT GRAPH TYPE DROP` query.

[source,cypher]
----
Expand Down