• Docs
  • API Reference
  • Packages
  • executors-http

@graphql-tools/executor-http

Table of contents

Interfaces

Type Aliases

Functions

Type Aliases

AsyncFetchFn

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

Type declaration

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

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

Promise<Response>

Defined in

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


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


FetchFn

Ƭ FetchFn: AsyncFetchFn | SyncFetchFn

Defined in

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


HeadersConfig

Ƭ HeadersConfig: Record<string, string>

Defined in

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


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


SyncImportFn

Ƭ SyncImportFn: (moduleName: string) => any

Type declaration

▸ (moduleName): any

Parameters
NameType
moduleNamestring
Returns

any

Defined in

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


SyncResponse

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

Defined in

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

Functions

buildHTTPExecutor

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

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


isLiveQueryOperationDefinitionNode

isLiveQueryOperationDefinitionNode(node): undefined | boolean

Parameters

NameType
nodeOperationDefinitionNode

Returns

undefined | boolean

Defined in

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