RFC 3 / Accepted

Be strict about error paths format

Opened on
Merged on

At a glance

Project
GraphQL Spec
Identifier
#1073
Stage
RFC 3 / Accepted
Champion
@martinbonnin
Updated
2024-04-04
Latest activity
Pull request merged on
Source
Related RFCs

Pull request description

Replace should with must in the description of error paths: This field must be a list of path segments starting...

    {
      "message": "Name for character with ID 1002 could not be fetched.",
      "locations": [{ "line": 6, "column": 7 }],
      "path": ["hero", "heroFriends", 1, "name"]
    }

Anything else will make it impossible to handle errors in error-aware clients. This is especially important for strict-nullability or semantic-non-nullability

Timeline

April 2024

March 2024

February 2024

January 2024