Error Responsesadvanced

GraphQL Error Payload JSON Example

A GraphQL-style error object with message, path, and extension metadata.

Real-world use case: Use this for GraphQL docs, client error handling, and schema debugging examples.
1{
2 "errors": [
3 {
4 "message": "Cannot query field \"totla\" on type \"Order\".",
5 "path": [
6 "order",
7 "totla"
8 ],
9 "extensions": {
10 "code": "GRAPHQL_VALIDATION_FAILED",
11 "requestId": "req_gql_221"
12 }
13 }

Where this shape shows up in production

GraphQL APIs
Client error handling
Schema debugging

Related examples