Skip to content

Commit

Permalink
"data" and "errors" appear in the "response", not the "result"
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie authored Dec 6, 2024
1 parent c37a4a4 commit a152ba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/Section 7 -- Response.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ of the query root operation type; if the operation was a mutation, this output
will be an object of the mutation root operation type.

If an error was raised before execution begins, the `data` entry should not be
present in the result.
present in the response.

If an error was raised during the execution that prevented a valid response, the
`data` entry in the response should be `null`.
Expand All @@ -56,7 +56,7 @@ format below.

If present, the `errors` entry in the response must contain at least one error.
If no errors were raised during the request, the `errors` entry must not be
present in the result.
present in the response.

If the `data` entry in the response is not present, the `errors` entry must be
present. It must contain at least one _request error_ indicating why no data was
Expand Down

0 comments on commit a152ba3

Please sign in to comment.