graphql-tools-monorepo / executors/http/src / HTTPExecutorOptions
Interface: HTTPExecutorOptions
executors/http/src.HTTPExecutorOptions
Hierarchy
-
HTTPExecutorOptions
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
Name | Type |
---|---|
fileBits | BlobPart [] |
fileName | string |
options? | FilePropertyBag |
Returns
File
Type declaration
Name | Type |
---|---|
prototype | File |
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
Name | Type |
---|---|
form? | HTMLFormElement |
submitter? | null | HTMLElement |
Returns
FormData
Type declaration
Name | Type |
---|---|
prototype | FormData |
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
• Optional
print: (doc
: DocumentNode
) => string
Print function for DocumentNode
Type declaration
▸ (doc
): string
Parameters
Name | Type |
---|---|
doc | DocumentNode |
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