Skip to content

Commit

Permalink
Update spec/GraphQLOverHTTP.md
Browse files Browse the repository at this point in the history
Co-authored-by: Benjie <benjie@jemjie.com>
  • Loading branch information
wheresrhys and benjie committed Feb 2, 2024
1 parent 6f6c1d8 commit 9ee5bd0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion spec/GraphQLOverHTTP.md
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,17 @@ If
raises a _GraphQL request error_, the server SHOULD NOT execute the request and
SHOULD return a status code of `200` (Okay).

For example a POST request body of `{"query": "{query getItem($id: String!) { item(id: $id) { id }}"}`, "variables": {"id": null}` would fail to satisfy the query document's expectation that `id` is non-nullable, and would fail at the variable coercion stage.
For example the well-formed GraphQL-over-HTTP request:

```json
{
"query": "query getItem($id: String!) { item(id: $id) { id } }",
"variables": { "id": null }
}
```

would fail variable coercion as the value for `id` would fail to satisfy the
query document's expectation that `id` is non-null.

##### Field errors encountered during execution

Expand Down

0 comments on commit 9ee5bd0

Please sign in to comment.