The Guild LogoThe Guild Monogram

Search docs

Search icon

Products by The Guild

Products

Hive logoHive blurred logo

Hive

Schema Registry for your GraphQL Workflows

GraphQL Tools

GraphQL Tools

A set of utilities for faster GraphQL development

Get Started

@graphql-tools/batch-delegate#

Table of contents#

Interfaces#

Type aliases#

Functions#

Type aliases#

BatchDelegateFn#

Ƭ BatchDelegateFn<TContext, K\>: (batchDelegateOptions: BatchDelegateOptions<TContext, K\>) => any

Type parameters#

NameType
TContextRecord<string, any\>
Kany

Type declaration#

▸ (batchDelegateOptions): any

Parameters#
NameType
batchDelegateOptionsBatchDelegateOptions<TContext, K\>
Returns#

any

Defined in#

packages/batch-delegate/src/types.ts:5


BatchDelegateOptionsFn#

Ƭ BatchDelegateOptionsFn<TContext, K\>: (batchDelegateOptions: BatchDelegateOptions<TContext, K\>) => IDelegateToSchemaOptions<TContext\>

Type parameters#

NameType
TContextRecord<string, any\>
Kany

Type declaration#

▸ (batchDelegateOptions): IDelegateToSchemaOptions<TContext\>

Parameters#
NameType
batchDelegateOptionsBatchDelegateOptions<TContext, K\>
Returns#

IDelegateToSchemaOptions<TContext\>

Defined in#

packages/batch-delegate/src/types.ts:9

Functions#

batchDelegateToSchema#

batchDelegateToSchema<TContext\>(options): any

Type parameters#

NameType
TContextany

Parameters#

NameType
optionsBatchDelegateOptions<TContext\>

Returns#

any

Defined in#

packages/batch-delegate/src/batchDelegateToSchema.ts:5


createBatchDelegateFn#

createBatchDelegateFn<K, V, C\>(optionsOrArgsFromKeys, lazyOptionsFn?, dataLoaderOptions?, valuesFromResults?): BatchDelegateFn<K\>

Type parameters#

NameType
Kany
Vany
CK

Parameters#

NameType
optionsOrArgsFromKeysCreateBatchDelegateFnOptions | (keys: ReadonlyArray<K\>) => Record<string, any\>
lazyOptionsFn?BatchDelegateOptionsFn
dataLoaderOptions?DataLoader.Options<K, V, C\>
valuesFromResults?(results: any, keys: ReadonlyArray<K\>) => V[]

Returns#

BatchDelegateFn<K\>

Defined in#

packages/batch-delegate/src/createBatchDelegateFn.ts:7