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
operationName?
string
variables?
Record<string, any>
document?
string
Returns
GraphQLOperationError
Overrides
Error.constructor
Properties
document?
readonlyoptionaldocument?: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
readonlyerrors:GraphQLErrorEntry[]
Defined in: client/GraphQLOperationError.ts:17
name
readonlyname:"GraphQLOperationError"='GraphQLOperationError'
Defined in: client/GraphQLOperationError.ts:16
Overrides
Error.name
operationName?
readonlyoptionaloperationName?:string
Defined in: client/GraphQLOperationError.ts:18
variables?
readonlyoptionalvariables?:Record<string,any>
Defined in: client/GraphQLOperationError.ts:19