Skip to content

Class: GraphQLRequestError ​

Defined in: fate/src/graphql-error.ts:8

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

Extends ​

  • Error

Constructors ​

Constructor ​

new GraphQLRequestError(errors, options?): GraphQLRequestError

Defined in: fate/src/graphql-error.ts:15

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/src/graphql-error.ts:13


errors ​

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

Defined in: fate/src/graphql-error.ts:10


kind ​

readonly kind: "execution" | "protocol"

Defined in: fate/src/graphql-error.ts:11


name ​

readonly name: "GraphQLRequestError" = 'GraphQLRequestError'

Defined in: fate/src/graphql-error.ts:9

Overrides ​

Error.name


status? ​

readonly optional status?: number

Defined in: fate/src/graphql-error.ts:12

Accessors ​

extensions ​

Get Signature ​

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

Defined in: fate/src/graphql-error.ts:31

Returns ​

Record<string, unknown> | undefined


path ​

Get Signature ​

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

Defined in: fate/src/graphql-error.ts:35

Returns ​

readonly (string | number)[] | undefined

Released under the MIT License