Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ExecutionSlice

Hierarchy

  • ExecutionSlice

Index

Properties

fetcher

fetcher: Fetcher

A function which accepts GraphQL HTTP parameters and returns a Promise, Observable or AsyncIterable that returns the GraphQL response in parsed JSON format.

We suggest using the createGraphiQLFetcher utility from @graphiql/toolkit to create these fetcher functions.

see

createGraphiQLFetcher

Optional getDefaultFieldNames

getDefaultFieldNames: GetDefaultFieldNamesFn

A function to determine which field leafs are automatically added when trying to execute a query with missing selection sets. It will be called with the GraphQLType for which fields need to be added.

isFetching

isFetching: boolean

If there is currently a GraphQL request in-flight. For multipart requests like subscriptions, this will be true while fetching the first partial response and false while fetching subsequent batches.

default

false

overrideOperationName

overrideOperationName: string | null

The operation name that will be sent with all GraphQL requests.

default

null

queryId

queryId: number
default

0

subscription

subscription: Unsubscribable | null

Represents an active GraphQL subscription.

For multipart operations such as subscriptions, this will hold an Unsubscribable object while the request is in-flight. It remains non-null until the operation completes or is manually unsubscribed.

remarks

Use subscription?.unsubscribe() to cancel the request.

default

null

Generated using TypeDoc