Catch the highlights of GraphQLConf 2023! Click for recordings. Or check out our recap blog post.
Docs
API Reference
Interfaces
HTTPExecutorOptions

graphql-tools-monorepo / executors/http/src / HTTPExecutorOptions

Interface: HTTPExecutorOptions

executors/http/src.HTTPExecutorOptions

Hierarchy

Table of contents

Properties

Properties

File

Optional File: Object

Call signature

new File(fileBits, fileName, options?): File

WHATWG compatible File implementation

Parameters
NameType
fileBitsBlobPart[]
fileNamestring
options?FilePropertyBag
Returns

File

See

https://developer.mozilla.org/en-US/docs/Web/API/File

Type declaration

NameType
prototypeFile

Defined in

packages/executors/http/src/index.ts:76


FormData

Optional FormData: Object

Call signature

new FormData(form?, submitter?): FormData

WHATWG compatible FormData implementation

Parameters
NameType
form?HTMLFormElement
submitter?null | HTMLElement
Returns

FormData

See

https://developer.mozilla.org/en-US/docs/Web/API/FormData

Type declaration

NameType
prototypeFormData

Defined in

packages/executors/http/src/index.ts:81


credentials

Optional credentials: RequestCredentials

Request Credentials (default: 'same-origin')

See

https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials

Defined in

packages/executors/http/src/index.ts:67


endpoint

Optional endpoint: string

Defined in

packages/executors/http/src/index.ts:45


fetch

Optional fetch: FetchFn

Defined in

packages/executors/http/src/index.ts:46


headers

Optional headers: HeadersConfig | (executorRequest?: ExecutionRequest<any, any, any, Record<string, any>, any>) => HeadersConfig

Additional headers to include when querying the original schema

Defined in

packages/executors/http/src/index.ts:54


method

Optional method: "GET" | "POST"

HTTP method to use when querying the original schema.

Defined in

packages/executors/http/src/index.ts:58


retry

Optional retry: number

Retry attempts

Defined in

packages/executors/http/src/index.ts:71


timeout

Optional timeout: number

Timeout in milliseconds

Defined in

packages/executors/http/src/index.ts:62


useGETForQueries

Optional useGETForQueries: boolean

Whether to use the GET HTTP method for queries when querying the original schema

Defined in

packages/executors/http/src/index.ts:50