Documentation
API Reference
Packages
executors-http

@graphql-tools/executor-http

Interfaces

Type Aliases

Functions

Type Aliases

AsyncFetchFn

Ƭ AsyncFetchFn: (url: string, options?: RequestInit, context?: any, info?: GraphQLResolveInfo) => Promise<Response> | Response

Type declaration

▸ (url, options?, context?, info?): Promise<Response> | Response

Parameters
NameType
urlstring
options?RequestInit
context?any
info?GraphQLResolveInfo
Returns

Promise<Response> | Response

Defined in

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


AsyncImportFn

Ƭ AsyncImportFn: (moduleName: string) => PromiseLike<any>

Type declaration

▸ (moduleName): PromiseLike<any>

Parameters
NameType
moduleNamestring
Returns

PromiseLike<any>

Defined in

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


FetchFn

Ƭ FetchFn: AsyncFetchFn | SyncFetchFn | RegularFetchFn

Defined in

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


HeadersConfig

Ƭ HeadersConfig: Record<string, string>

Defined in

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


RegularFetchFn

Ƭ RegularFetchFn: (url: string) => Promise<Response> | Response

Type declaration

▸ (url): Promise<Response> | Response

Parameters
NameType
urlstring
Returns

Promise<Response> | Response

Defined in

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


SyncFetchFn

Ƭ SyncFetchFn: (url: string, init?: RequestInit, context?: any, info?: GraphQLResolveInfo) => SyncResponse

Type declaration

▸ (url, init?, context?, info?): SyncResponse

Parameters
NameType
urlstring
init?RequestInit
context?any
info?GraphQLResolveInfo
Returns

SyncResponse

Defined in

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


SyncImportFn

Ƭ SyncImportFn: (moduleName: string) => any

Type declaration

▸ (moduleName): any

Parameters
NameType
moduleNamestring
Returns

any

Defined in

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


SyncResponse

Ƭ SyncResponse: Omit<Response, "json" | "text"> & { json: () => any ; text: () => string }

Defined in

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

Functions

buildHTTPExecutor

buildHTTPExecutor(options?): DisposableSyncExecutor<any, HTTPExecutorOptions>

Parameters

NameType
options?Omit<HTTPExecutorOptions, "fetch" | "disposable"> & { disposable: true ; fetch: SyncFetchFn }

Returns

DisposableSyncExecutor<any, HTTPExecutorOptions>

Defined in

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

buildHTTPExecutor(options?): SyncExecutor<any, HTTPExecutorOptions>

Parameters

NameType
options?Omit<HTTPExecutorOptions, "fetch" | "disposable"> & { disposable: false ; fetch: SyncFetchFn }

Returns

SyncExecutor<any, HTTPExecutorOptions>

Defined in

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

buildHTTPExecutor(options?): SyncExecutor<any, HTTPExecutorOptions>

Parameters

NameType
options?Omit<HTTPExecutorOptions, "fetch"> & { fetch: SyncFetchFn }

Returns

SyncExecutor<any, HTTPExecutorOptions>

Defined in

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

buildHTTPExecutor(options?): DisposableAsyncExecutor<any, HTTPExecutorOptions>

Parameters

NameType
options?Omit<HTTPExecutorOptions, "fetch" | "disposable"> & { disposable: true ; fetch: AsyncFetchFn }

Returns

DisposableAsyncExecutor<any, HTTPExecutorOptions>

Defined in

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

buildHTTPExecutor(options?): AsyncExecutor<any, HTTPExecutorOptions>

Parameters

NameType
options?Omit<HTTPExecutorOptions, "fetch" | "disposable"> & { disposable: false ; fetch: AsyncFetchFn }

Returns

AsyncExecutor<any, HTTPExecutorOptions>

Defined in

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

buildHTTPExecutor(options?): AsyncExecutor<any, HTTPExecutorOptions>

Parameters

NameType
options?Omit<HTTPExecutorOptions, "fetch"> & { fetch: AsyncFetchFn }

Returns

AsyncExecutor<any, HTTPExecutorOptions>

Defined in

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

buildHTTPExecutor(options?): DisposableAsyncExecutor<any, HTTPExecutorOptions>

Parameters

NameType
options?Omit<HTTPExecutorOptions, "fetch" | "disposable"> & { disposable: true ; fetch: RegularFetchFn }

Returns

DisposableAsyncExecutor<any, HTTPExecutorOptions>

Defined in

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

buildHTTPExecutor(options?): AsyncExecutor<any, HTTPExecutorOptions>

Parameters

NameType
options?Omit<HTTPExecutorOptions, "fetch" | "disposable"> & { disposable: false ; fetch: RegularFetchFn }

Returns

AsyncExecutor<any, HTTPExecutorOptions>

Defined in

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

buildHTTPExecutor(options?): AsyncExecutor<any, HTTPExecutorOptions>

Parameters

NameType
options?Omit<HTTPExecutorOptions, "fetch"> & { fetch: RegularFetchFn }

Returns

AsyncExecutor<any, HTTPExecutorOptions>

Defined in

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

buildHTTPExecutor(options?): DisposableAsyncExecutor<any, HTTPExecutorOptions>

Parameters

NameType
options?Omit<HTTPExecutorOptions, "fetch" | "disposable"> & { disposable: true }

Returns

DisposableAsyncExecutor<any, HTTPExecutorOptions>

Defined in

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

buildHTTPExecutor(options?): AsyncExecutor<any, HTTPExecutorOptions>

Parameters

NameType
options?Omit<HTTPExecutorOptions, "fetch" | "disposable"> & { disposable: false }

Returns

AsyncExecutor<any, HTTPExecutorOptions>

Defined in

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

buildHTTPExecutor(options?): AsyncExecutor<any, HTTPExecutorOptions>

Parameters

NameType
options?Omit<HTTPExecutorOptions, "fetch">

Returns

AsyncExecutor<any, HTTPExecutorOptions>

Defined in

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


isLiveQueryOperationDefinitionNode

isLiveQueryOperationDefinitionNode(node): undefined | boolean

Parameters

NameType
nodeOperationDefinitionNode

Returns

undefined | boolean

Defined in

packages/executors/http/src/isLiveQueryOperationDefinitionNode.ts:5