Skip to content

Commit 7d015c4

Browse files
committed
Add examples
1 parent d7b0d4f commit 7d015c4

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,24 @@
66
error: data exception - index does not exist. The index `{ <<idxDescrOrName>> }` does not exist.
77

88

9+
== Example scenario
10+
11+
For example, try to drop a non-existing index:
12+
13+
[source,cypher]
14+
----
15+
DROP INDEX `nonExisting`
16+
----
17+
18+
You will receive an error with GQLSTATUS xref:errors/gql-errors/50N10.adoc[50N10].
19+
This error has a cause with GQLSTATUS 22N69 and status description:
20+
21+
[source]
22+
----
23+
error: data exception - index does not exist. The index 'nonExisting' does not exist.
24+
----
25+
26+
927
ifndef::backend-pdf[]
1028
[discrete.glossary]
1129
== Glossary

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,30 @@
66
error: data exception - duplicated index name. An index with the same name already exists: `{ <<idx>> }`.
77

88

9+
== Example scenario
10+
11+
For example, try to create an index when there is another existing index with that name:
12+
13+
Given:
14+
[source,cypher]
15+
----
16+
CREATE INDEX `myIndex` FOR (n:Person) ON (n.name)
17+
----
18+
19+
Then, when attempting to create:
20+
[source,cypher]
21+
----
22+
CREATE INDEX `myIndex` FOR (n:Book) ON (n.title)
23+
----
24+
25+
You will receive an error with GQLSTATUS 22N71 and status description:
26+
27+
[source]
28+
----
29+
error: data exception - duplicated index name. An index with the same name already exists: `myIndex`
30+
----
31+
32+
933
ifndef::backend-pdf[]
1034
[discrete.glossary]
1135
== Glossary

0 commit comments

Comments
 (0)