Skip to content

Commit f5925c0

Browse files
committed
Add new GQLSTATUS codes for search
1 parent 3354df6 commit f5925c0

File tree

5 files changed

+124
-0
lines changed

5 files changed

+124
-0
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@
267267
**** xref:errors/gql-errors/42I66.adoc[]
268268
**** xref:errors/gql-errors/42I67.adoc[]
269269
**** xref:errors/gql-errors/42I68.adoc[]
270+
**** xref:errors/gql-errors/42I69.adoc[]
271+
**** xref:errors/gql-errors/42I70.adoc[]
272+
**** xref:errors/gql-errors/42I71.adoc[]
273+
**** xref:errors/gql-errors/42I72.adoc[]
270274
**** xref:errors/gql-errors/42N00.adoc[]
271275
**** xref:errors/gql-errors/42N01.adoc[]
272276
**** xref:errors/gql-errors/42N02.adoc[]
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
:page-role: new-2026.01 // TODO update to actual version when feature flag is removed
2+
= 42I69
3+
4+
== Status description
5+
error: syntax error or access rule violation - invalid search variable reference. `{ <<variable>> }` must reference a variable from the same MATCH statement.
6+
7+
== Example scenario
8+
9+
For example, when parsing a duration string value:
10+
11+
[source,cypher]
12+
----
13+
RETURN duration("5 hours 12 minutes 15 seconds", "h 'hours' m 'minutes'") AS d
14+
----
15+
16+
You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001].
17+
This error has a cause detailed in xref:errors/gql-errors/42I68.adoc[42I68] and status description:
18+
19+
20+
[source]
21+
----
22+
error: syntax error or access rule violation - mismatched pattern. Pattern, `"h 'hours' m 'minutes'"`, does not match input, `"5 hours 12 minutes 15 seconds"`. Verify that the pattern is valid for constructing `DURATION`.
23+
----
24+
25+
ifndef::backend-pdf[]
26+
[discrete.glossary]
27+
== Glossary
28+
29+
include::partial$glossary.adoc[]
30+
endif::[]
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
:page-role: new-2026.01 // TODO update to actual version when feature flag is removed
2+
= 42I70
3+
4+
== Status description
5+
error: syntax error or access rule violation - search clause with multiple bound variables. In order to have a search clause, a MATCH statement can only have one bound variable.
6+
7+
== Example scenario
8+
9+
For example, when parsing a duration string value:
10+
11+
[source,cypher]
12+
----
13+
RETURN duration("5 hours 12 minutes 15 seconds", "h 'hours' m 'minutes'") AS d
14+
----
15+
16+
You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001].
17+
This error has a cause detailed in xref:errors/gql-errors/42I68.adoc[42I68] and status description:
18+
19+
20+
[source]
21+
----
22+
error: syntax error or access rule violation - mismatched pattern. Pattern, `"h 'hours' m 'minutes'"`, does not match input, `"5 hours 12 minutes 15 seconds"`. Verify that the pattern is valid for constructing `DURATION`.
23+
----
24+
25+
ifndef::backend-pdf[]
26+
[discrete.glossary]
27+
== Glossary
28+
29+
include::partial$glossary.adoc[]
30+
endif::[]
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
:page-role: new-2026.01 // TODO update to actual version when feature flag is removed
2+
= 42I71
3+
4+
== Status description
5+
error: syntax error or access rule violation - search clause with invalid predicates. In order to have a search clause, a MATCH statement can only have predicates on the bound node or relationship.
6+
7+
== Example scenario
8+
9+
For example, when parsing a duration string value:
10+
11+
[source,cypher]
12+
----
13+
RETURN duration("5 hours 12 minutes 15 seconds", "h 'hours' m 'minutes'") AS d
14+
----
15+
16+
You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001].
17+
This error has a cause detailed in xref:errors/gql-errors/42I68.adoc[42I68] and status description:
18+
19+
20+
[source]
21+
----
22+
error: syntax error or access rule violation - mismatched pattern. Pattern, `"h 'hours' m 'minutes'"`, does not match input, `"5 hours 12 minutes 15 seconds"`. Verify that the pattern is valid for constructing `DURATION`.
23+
----
24+
25+
ifndef::backend-pdf[]
26+
[discrete.glossary]
27+
== Glossary
28+
29+
include::partial$glossary.adoc[]
30+
endif::[]
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
:page-role: new-2026.01 // TODO update to actual version when feature flag is removed
2+
= 42I72
3+
4+
== Status description
5+
error: syntax error or access rule violation - search clause with too complex pattern. In order to have a search clause, a MATCH statement can only have a single node or relationship pattern and no selectors.
6+
7+
== Example scenario
8+
9+
For example, when parsing a duration string value:
10+
11+
[source,cypher]
12+
----
13+
RETURN duration("5 hours 12 minutes 15 seconds", "h 'hours' m 'minutes'") AS d
14+
----
15+
16+
You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001].
17+
This error has a cause detailed in xref:errors/gql-errors/42I68.adoc[42I68] and status description:
18+
19+
20+
[source]
21+
----
22+
error: syntax error or access rule violation - mismatched pattern. Pattern, `"h 'hours' m 'minutes'"`, does not match input, `"5 hours 12 minutes 15 seconds"`. Verify that the pattern is valid for constructing `DURATION`.
23+
----
24+
25+
ifndef::backend-pdf[]
26+
[discrete.glossary]
27+
== Glossary
28+
29+
include::partial$glossary.adoc[]
30+
endif::[]

0 commit comments

Comments
 (0)