Skip to main content

Class: GraphQLOperationError

Defined in: client/GraphQLOperationError.ts:15

Extends

  • Error

Constructors

Constructor

new GraphQLOperationError(errors, operationName?, variables?, document?): GraphQLOperationError

Defined in: client/GraphQLOperationError.ts:27

Parameters

errors

GraphQLErrorEntry[]

operationName?

string

variables?

Record<string, any>

document?

string

Returns

GraphQLOperationError

Overrides

Error.constructor

Properties

document?

readonly optional document?: string

Defined in: client/GraphQLOperationError.ts:25

The GraphQL document string that produced this error. Useful for logging the exact query/mutation that failed (e.g. when diagnosing schema drift) without trawling the source.


errors

readonly errors: GraphQLErrorEntry[]

Defined in: client/GraphQLOperationError.ts:17


name

readonly name: "GraphQLOperationError" = 'GraphQLOperationError'

Defined in: client/GraphQLOperationError.ts:16

Overrides

Error.name


operationName?

readonly optional operationName?: string

Defined in: client/GraphQLOperationError.ts:18


variables?

readonly optional variables?: Record<string, any>

Defined in: client/GraphQLOperationError.ts:19