@graphql-tools/batch-delegate
Interfaces
Type Aliases
Functions
Type Aliases
BatchDelegateFn
Ƭ BatchDelegateFn<TContext, K>: (batchDelegateOptions: BatchDelegateOptions<TContext, K>) => any
Type parameters
| Name | Type | 
|---|---|
TContext | Record<string, any> | 
K | any | 
Type declaration
▸ (batchDelegateOptions): any
Parameters
| Name | Type | 
|---|---|
batchDelegateOptions | BatchDelegateOptions<TContext, K> | 
Returns
any
Defined in
packages/batch-delegate/src/types.ts:4
BatchDelegateOptionsFn
Ƭ BatchDelegateOptionsFn<TContext, K>: (batchDelegateOptions: BatchDelegateOptions<TContext, K>, keys: ReadonlyArray<K>) => IDelegateToSchemaOptions<TContext>
Type parameters
| Name | Type | 
|---|---|
TContext | Record<string, any> | 
K | any | 
Type declaration
▸ (batchDelegateOptions, keys): IDelegateToSchemaOptions<TContext>
Parameters
| Name | Type | 
|---|---|
batchDelegateOptions | BatchDelegateOptions<TContext, K> | 
keys | ReadonlyArray<K> | 
Returns
IDelegateToSchemaOptions<TContext>
Defined in
packages/batch-delegate/src/types.ts:8
Functions
batchDelegateToSchema
▸ batchDelegateToSchema<TContext>(options): any
Type parameters
| Name | Type | 
|---|---|
TContext | any | 
Parameters
| Name | Type | 
|---|---|
options | BatchDelegateOptions<TContext, any, any, any> | 
Returns
any
Defined in
packages/batch-delegate/src/batchDelegateToSchema.ts:4
createBatchDelegateFn
▸ createBatchDelegateFn<K, V, C>(optionsOrArgsFromKeys, lazyOptionsFn?, dataLoaderOptions?, valuesFromResults?): BatchDelegateFn<K>
Type parameters
| Name | Type | 
|---|---|
K | any | 
V | any | 
C | K | 
Parameters
| Name | Type | 
|---|---|
optionsOrArgsFromKeys | CreateBatchDelegateFnOptions<Record<string, any>, any, any, any> | (keys: readonly K[]) => Record<string, any> | 
lazyOptionsFn? | BatchDelegateOptionsFn | 
dataLoaderOptions? | Options<K, V, C> | 
valuesFromResults? | (results: any, keys: readonly K[]) => V[] |