Skip to content

GraphQLError

Defined in: packages/fetch-kit/src/errors.ts:97

Thrown when a GraphQL operation returns one or more errors.

GraphQL servers respond with HTTP 200 even when an operation fails, so the client inspects the response body for an errors array and surfaces it as this error. Both the error list and any partial data returned by the server are preserved so callers can decide whether to recover.

Each entry in errors follows the GraphQL spec error shape: { message, locations?, path?, extensions? }.

new GraphQLError(errors, data): GraphQLError

Defined in: packages/fetch-kit/src/errors.ts:100

readonly object[]

unknown

GraphQLError

FetchKitError.constructor

readonly data: unknown

Defined in: packages/fetch-kit/src/errors.ts:107


readonly errors: readonly object[]

Defined in: packages/fetch-kit/src/errors.ts:101


readonly name: "GraphQLError" = "GraphQLError"

Defined in: packages/fetch-kit/src/errors.ts:98

FetchKitError.name