Skip to content

Commit daedb67

Browse files
Merge branch 'dev' into cluster-procedure-and-routing-codes
2 parents 76ad626 + 055a4cc commit daedb67

File tree

6 files changed

+31
-8
lines changed

6 files changed

+31
-8
lines changed

README.adoc

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,25 @@ You will still need to refresh the page to view the changes.
3333
[[contributing]]
3434
== Contributing
3535

36-
To make changes to this repository, please create a fork of this repo and a new branch to stage your changes.
37-
Your branch should be prefixed with the version number, for example, `dev-new-examples`.
38-
39-
When you are finished with your changes push the branch to your fork and create a Pull Request.
40-
Please add at least one approver.
36+
. To make changes to this repository, create a fork of this repo and a new branch to stage your changes.
37+
Your branch should be prefixed with `dev-` or the version if it is a specific version you are working on.
38+
. If you want to add a new GQLSTATUS code or update an existing one, you must start with the `neo4j` repo.
39+
The `neo4j` repo is the source of truth for all GQLSTATUS codes.
40+
. Add a page for each new GQLSTATUS code in the _docs-status-codes/modules/ROOT/pages/errors/gql-errors_ folder or update an existing one.
41+
The file name should be the same as the GQLSTATUS code, e.g., `08N02.adoc` for the `08N02` code.
42+
Use the same format as the other files in this folder.
43+
. Update the _content-nav.adoc_ file to reflect the added codes.
44+
Codes are ordered alphabetically.
45+
. If the standard description of a new GQLSTATUS code contains a new parameter, add this parameter to the _docs-status-codes/modules/ROOT/partials/glossary.adoc_ file as well.
46+
. GQLSTATUS codes are also listed on the index page.
47+
PLEASE DON’T EDIT IT.
48+
The _docs-status-codes/modules/ROOT/pages/errors/gql-errors/index.adoc_ file is created from a template and the codes and their status descriptions are automatically populated.
49+
If you want to update the index page with adding a new section or section description, please contact the Docs team.
50+
The Docs team is also responsible for keeping it consistent with the individual error files.
51+
. If possible, add an example of the new error and any extra information our users may benefit from on the error page.
52+
See the following pages for inspiration:
53+
https://neo4j.com/docs/status-codes/current/errors/gql-errors/08N02/, https://neo4j.com/docs/status-codes/current/errors/gql-errors/08N07/, and https://neo4j.com/docs/status-codes/current/errors/gql-errors/51N27/.
54+
. Let your team and Docs team review the PR.
4155

4256
[[guidelines]]
4357
== Guidelines for writing errors and notifications

modules/ROOT/pages/errors/all-errors.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66

77
This page lists the current Neo4j error codes, which which are returned along side xref:errors/gql-errors/index.adoc[GQLSTATUS error codes], grouped by type.
88

9+
[NOTE]
10+
====
11+
Starting from 2025.04, using the error messages programmatically is deprecated.
12+
Because error messages might change in a future release, please parse or use GQLSTATUS error codes in your application code.
13+
For details, see xref:errors/gql-errors/index.adoc[GQLSTATUS error codes].
14+
====
15+
916
== Client errors
1017

1118
This is a complete list of all client errors Neo4j may return, and what they mean.

modules/ROOT/pages/errors/gql-errors/42I14.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 42I14
22

33
== Status description
4-
error: syntax error or access rule violation - invalid number of relationship types. Exactly one relationship type must be specified for `{ <<var>> }`.
4+
error: syntax error or access rule violation - invalid number of relationship types. Exactly one relationship type must be specified for `{ <<variable>> }`.
55

66
ifndef::backend-pdf[]
77
[discrete.glossary]

modules/ROOT/pages/errors/gql-errors/index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ Status description:: error: syntax error or access rule violation - invalid numb
840840

841841
=== xref:errors/gql-errors/42I14.adoc[42I14]
842842

843-
Status description:: error: syntax error or access rule violation - invalid number of relationship types. Exactly one relationship type must be specified for `{ <<var>> }`.
843+
Status description:: error: syntax error or access rule violation - invalid number of relationship types. Exactly one relationship type must be specified for `{ <<variable>> }`.
844844

845845
=== xref:errors/gql-errors/42I15.adoc[42I15]
846846

modules/ROOT/pages/notifications/all-notifications.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,7 @@ Returned GQLSTATUS code::
19721972
Returned status description::
19731973
warn: feature deprecated with replacement.
19741974
id is deprecated.
1975-
It is replaced by elementId or an application-generated id.
1975+
It is replaced by elementId or consider using an application-generated id.
19761976

19771977
Suggestions for improvement::
19781978
Use the function `elementId()` instead.

modules/ROOT/partials/glossary.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[[action]]$action:: Freeform description of an action.
44
//$action will be replaced by cmd and msg depending on the usage.
55
[[alias]]$alias:: An alias name, `mydb-alias`.
6+
[[aliasList]]$aliasList:: A list of alias names, for example, `mydb-alias1, mydb-alias2`.
67
[[allocType]]$allocType:: Allocation type (`primary` or `secondary`).
78
[[arg]]$arg:: Procedure or function argument, for example, `database`, `pause`, `dryrun`, etc.
89
[[argType]]$argType:: Argument type, either input or output.
@@ -41,6 +42,7 @@
4142
//52N22 and 52N36 to change $field to $arg. Check 22N98 with Antonio.
4243
[[fun]]$fun:: Function name, for example, `collect()`.
4344
[[funClass]]$funClass:: User-defined function implementation class name, for example, `MyFunctionClass`.
45+
[[funType]]$funType:: Function type, e.g. non-deterministic or aggregate.
4446
[[graph]]$graph:: The name of a graph, for example, `myGraph`.
4547
[[graphTypeDependence]]$graphTypeDependence:: Graph type dependencency for constraint, one of `UNDESIGNATED`, `INDEPENDENT`, or `DEPENDENT`.
4648
[[hint]]$hint:: Freeform description of a hint, for example, `USING INDEX n:N(prop)`.

0 commit comments

Comments
 (0)