diff --git a/modules/ROOT/content-nav.adoc b/modules/ROOT/content-nav.adoc index 62efe6d8..5f75c4b6 100644 --- a/modules/ROOT/content-nav.adoc +++ b/modules/ROOT/content-nav.adoc @@ -159,6 +159,21 @@ **** xref:errors/gql-errors/22NBD.adoc[] **** xref:errors/gql-errors/22NBE.adoc[] **** xref:errors/gql-errors/22NBF.adoc[] +**** xref:errors/gql-errors/22NC1.adoc[] +**** xref:errors/gql-errors/22NC2.adoc[] +**** xref:errors/gql-errors/22NC3.adoc[] +**** xref:errors/gql-errors/22NC4.adoc[] +**** xref:errors/gql-errors/22NC5.adoc[] +**** xref:errors/gql-errors/22NC6.adoc[] +**** xref:errors/gql-errors/22NC7.adoc[] +**** xref:errors/gql-errors/22NC8.adoc[] +**** xref:errors/gql-errors/22NC9.adoc[] +**** xref:errors/gql-errors/22NCA.adoc[] +**** xref:errors/gql-errors/22NCB.adoc[] +**** xref:errors/gql-errors/22NCC.adoc[] +**** xref:errors/gql-errors/22NCD.adoc[] +**** xref:errors/gql-errors/22NCE.adoc[] +**** xref:errors/gql-errors/22NCF.adoc[] *** xref:errors/gql-errors/index.adoc#invalid-transaction-state[Invalid transaction state] **** xref:errors/gql-errors/25G02.adoc[] **** xref:errors/gql-errors/25N01.adoc[] diff --git a/modules/ROOT/pages/errors/gql-errors/22NC1.adoc b/modules/ROOT/pages/errors/gql-errors/22NC1.adoc new file mode 100644 index 00000000..8549fb3a --- /dev/null +++ b/modules/ROOT/pages/errors/gql-errors/22NC1.adoc @@ -0,0 +1,41 @@ +:page-role: new-2025.x cypher-25 += 22NC1 + +== Status description +error: data exception - graph type element contains duplicated tokens. The graph type element includes a property key with name `{ <> }` more than once. + +== Explanation +When defining a graph type, node and relationship element types may only define a property once. + +== Example scenario +For example, try to set a graph type as follows: + +[source,cypher] +---- +ALTER CURRENT GRAPH TYPE SET { + (n:Node => {prop::STRING, prop::INTEGER}) +} +---- + +The query returns an error with GQLSTATUS 22NC1 and the status description: + +[source] +---- +error: data exception - graph type element contains duplicated tokens. The graph type element includes a property key with name `prop` more than once. +---- + +To fix this, remove the duplicate property key definition or uniquely name the property keys: + +[source, cypher] +---- +ALTER CURRENT GRAPH TYPE SET { + (p:Node => {prop :: STRING, prop2 :: INTEGER}) +} +---- + +ifndef::backend-pdf[] +[discrete.glossary] +== Glossary + +include::partial$glossary.adoc[] +endif::[] \ No newline at end of file diff --git a/modules/ROOT/pages/errors/gql-errors/22NC2.adoc b/modules/ROOT/pages/errors/gql-errors/22NC2.adoc new file mode 100644 index 00000000..ca3e341c --- /dev/null +++ b/modules/ROOT/pages/errors/gql-errors/22NC2.adoc @@ -0,0 +1,41 @@ +:page-role: new-2025.x cypher-25 += 22NC2 + +== Status description +error: data exception - node element type has no effect. The node element type `{ <