Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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/content-nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
**** xref:errors/gql-errors/22015.adoc[]
**** xref:errors/gql-errors/22G03.adoc[]
**** xref:errors/gql-errors/22G05.adoc[]
**** xref:errors/gql-errors/22G0I.adoc[]
**** xref:errors/gql-errors/22N00.adoc[]
**** xref:errors/gql-errors/22N01.adoc[]
**** xref:errors/gql-errors/22N02.adoc[]
Expand Down
28 changes: 28 additions & 0 deletions modules/ROOT/pages/errors/gql-errors/22G0I.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
:page-role: new-2025.11
= 22G0I

== Status description
error: data exception - invalid duration field. `{ <<field>> }` is not a valid duration field.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Could you also add an example scenario and an example.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example added in f168ab1.


== Example scenario

For example, when executing the following invalid query:

[source,cypher]
----
RETURN duration({dogYears: datetime()})
----

You will receive an error with GQLSTATUS 22G0I and status description:

[source]
----
error: data exception - invalid duration field. `dogYears` is not a valid duration field.
----

ifndef::backend-pdf[]
[discrete.glossary]
== Glossary

include::partial$glossary.adoc[]
endif::[]
5 changes: 5 additions & 0 deletions modules/ROOT/pages/errors/gql-errors/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ Status description:: error: data exception - invalid value type

Status description:: error: data exception - invalid date, time, or datetime function field name

[role=label--new-2025.11]
=== xref:errors/gql-errors/22G0I.adoc[22G0I]

Status description:: error: data exception - invalid duration field. `{ <<field>> }` is not a valid duration field.

=== xref:errors/gql-errors/22N00.adoc[22N00]

Status description:: error: data exception - unsupported value. The provided value is unsupported and cannot be processed.
Expand Down