Skip to content

Commit 26f08b7

Browse files
Update src/pages/learn/debug-errors.mdx
Co-authored-by: Benjie <[email protected]>
1 parent a2b02b1 commit 26f08b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/pages/learn/debug-errors.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,11 @@ The HTTP layer succeeded, but the GraphQL request produced errors.
118118

119119
### How to debug
120120

121-
Check the `errors` array in the response body. A typical response looks like:
121+
Check the `errors` array in the response body.
122+
123+
If the response includes a `data` property then your query document is likely valid and you most likely hit a runtime exception - perhaps something went wrong on the server, you supplied invalid data, you're not allowed to do that, or some other runtime exception occurred.
124+
125+
If the response does not include a `data` property it's likely there was a mistake in your request - an invalid GraphQL document or bad values for variables. A typical validation error response looks like:
122126

123127
```json
124128
{

0 commit comments

Comments
 (0)