@graphql-tools/executor-http
Table of contents
Interfaces
Type Aliases
- AsyncFetchFn
- AsyncImportFn
- FetchFn
- HeadersConfig
- RegularFetchFn
- SyncFetchFn
- SyncImportFn
- SyncResponse
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
Name | Type |
---|---|
url | string |
options? | RequestInit |
context? | any |
info? | GraphQLResolveInfo |
Returns
Promise
<Response
> | Response
Defined in
packages/executors/http/src/index.ts:25 (opens in a new tab)
AsyncImportFn
Ƭ AsyncImportFn: (moduleName
: string
) => PromiseLike
<any
>
Type declaration
▸ (moduleName
): PromiseLike
<any
>
Parameters
Name | Type |
---|---|
moduleName | string |
Returns
PromiseLike
<any
>
Defined in
packages/executors/http/src/index.ts:36 (opens in a new tab)
FetchFn
Ƭ FetchFn: AsyncFetchFn
| SyncFetchFn
| RegularFetchFn
Defined in
packages/executors/http/src/index.ts:34 (opens in a new tab)
HeadersConfig
Ƭ HeadersConfig: Record
<string
, string
>
Defined in
packages/executors/http/src/index.ts:79 (opens in a new tab)
RegularFetchFn
Ƭ RegularFetchFn: (url
: string
) => Promise
<Response
> | Response
Type declaration
▸ (url
): Promise
<Response
> | Response
Parameters
Name | Type |
---|---|
url | string |
Returns
Promise
<Response
> | Response
Defined in
packages/executors/http/src/index.ts:32 (opens in a new tab)
SyncFetchFn
Ƭ SyncFetchFn: (url
: string
, init?
: RequestInit
, context?
: any
, info?
: GraphQLResolveInfo
) => SyncResponse
Type declaration
▸ (url
, init?
, context?
, info?
): SyncResponse
Parameters
Name | Type |
---|---|
url | string |
init? | RequestInit |
context? | any |
info? | GraphQLResolveInfo |
Returns
Defined in
packages/executors/http/src/index.ts:19 (opens in a new tab)
SyncImportFn
Ƭ SyncImportFn: (moduleName
: string
) => any
Type declaration
▸ (moduleName
): any
Parameters
Name | Type |
---|---|
moduleName | string |
Returns
any
Defined in
packages/executors/http/src/index.ts:37 (opens in a new tab)
SyncResponse
Ƭ SyncResponse: Omit
<Response
, "json"
| "text"
> & { json
: () => any
; text
: () => string
}
Defined in
packages/executors/http/src/index.ts:20 (opens in a new tab)
Functions
buildHTTPExecutor
▸ buildHTTPExecutor(options?
): SyncExecutor
<any
, HTTPExecutorOptions
>
Parameters
Name | Type |
---|---|
options? | Omit <HTTPExecutorOptions , "fetch" > & { fetch : SyncFetchFn } |
Returns
SyncExecutor
<any
, HTTPExecutorOptions
>
Defined in
packages/executors/http/src/index.ts:81 (opens in a new tab)
▸ buildHTTPExecutor(options?
): AsyncExecutor
<any
, HTTPExecutorOptions
>
Parameters
Name | Type |
---|---|
options? | Omit <HTTPExecutorOptions , "fetch" > & { fetch : AsyncFetchFn } |
Returns
AsyncExecutor
<any
, HTTPExecutorOptions
>
Defined in
packages/executors/http/src/index.ts:85 (opens in a new tab)
▸ buildHTTPExecutor(options?
): AsyncExecutor
<any
, HTTPExecutorOptions
>
Parameters
Name | Type |
---|---|
options? | Omit <HTTPExecutorOptions , "fetch" > & { fetch : RegularFetchFn } |
Returns
AsyncExecutor
<any
, HTTPExecutorOptions
>
Defined in
packages/executors/http/src/index.ts:89 (opens in a new tab)
▸ buildHTTPExecutor(options?
): AsyncExecutor
<any
, HTTPExecutorOptions
>
Parameters
Name | Type |
---|---|
options? | Omit <HTTPExecutorOptions , "fetch" > |
Returns
AsyncExecutor
<any
, HTTPExecutorOptions
>
Defined in
packages/executors/http/src/index.ts:93 (opens in a new tab)
isLiveQueryOperationDefinitionNode
▸ isLiveQueryOperationDefinitionNode(node
): undefined
| boolean
Parameters
Name | Type |
---|---|
node | OperationDefinitionNode |
Returns
undefined
| boolean
Defined in
packages/executors/http/src/isLiveQueryOperationDefinitionNode.ts:4 (opens in a new tab)