Skip to content

Class: GraphQLRequestError ​

Defined in: fate/lib/index.d.mts:102

A failed GraphQL operation. Partial data is diagnostic and is never normalized.

Extends ​

  • Error

Constructors ​

Constructor ​

new GraphQLRequestError(errors, options?): GraphQLRequestError

Defined in: fate/lib/index.d.mts:108

Parameters ​

errors ​

readonly Readonly<{ extensions?: Record<string, unknown>; message?: string; path?: readonly (string | number)[]; }>[]

options? ​
data? ​

unknown

kind? ​

"execution" | "protocol"

message? ​

string

status? ​

number

Returns ​

GraphQLRequestError

Overrides ​

Error.constructor

Properties ​

data? ​

readonly optional data?: unknown

Defined in: fate/lib/index.d.mts:107


errors ​

readonly errors: readonly Readonly<{ extensions?: Record<string, unknown>; message?: string; path?: readonly (string | number)[]; }>[]

Defined in: fate/lib/index.d.mts:104


kind ​

readonly kind: "execution" | "protocol"

Defined in: fate/lib/index.d.mts:105


name ​

readonly name: "GraphQLRequestError" = "GraphQLRequestError"

Defined in: fate/lib/index.d.mts:103

Overrides ​

Error.name


status? ​

readonly optional status?: number

Defined in: fate/lib/index.d.mts:106

Accessors ​

extensions ​

Get Signature ​

get extensions(): Record<string, unknown> | undefined

Defined in: fate/lib/index.d.mts:114

Returns ​

Record<string, unknown> | undefined


path ​

Get Signature ​

get path(): readonly (string | number)[] | undefined

Defined in: fate/lib/index.d.mts:115

Returns ​

readonly (string | number)[] | undefined

Released under the MIT License