Documentation
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

WHATWG compatible File implementation

See

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

Call signature

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

Parameters
NameType
fileBitsBlobPart[]
fileNamestring
options?FilePropertyBag
Returns

File

Type declaration

NameType
prototypeFile

Defined in

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


FormData

Optional FormData: Object

WHATWG compatible FormData implementation

See

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

Call signature

new FormData(form?, submitter?): FormData

Parameters
NameType
form?HTMLFormElement
submitter?null | HTMLElement
Returns

FormData

Type declaration

NameType
prototypeFormData

Defined in

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


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:68


endpoint

Optional endpoint: string

Defined in

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


fetch

Optional fetch: FetchFn

Defined in

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


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:55


method

Optional method: "GET" | "POST"

HTTP method to use when querying the original schema.

Defined in

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


print

Optional print: (doc: DocumentNode) => string

Print function for DocumentNode

Type declaration

▸ (doc): string

Parameters
NameType
docDocumentNode
Returns

string

Defined in

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


retry

Optional retry: number

Retry attempts

Defined in

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


timeout

Optional timeout: number

Timeout in milliseconds

Defined in

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


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:51