Documentation
API Reference
Interfaces
BatchDelegateOptions

graphql-tools-monorepo / batch-delegate/src / BatchDelegateOptions

Interface: BatchDelegateOptions<TContext, K, V, C>

batch-delegate/src.BatchDelegateOptions

Type parameters

NameType
TContextRecord<string, any>
Kany
Vany
CK

Hierarchy

Table of contents

Properties

Properties

argsFromKeys

Optional argsFromKeys: (keys: readonly K[]) => Record<string, any>

Type declaration

▸ (keys): Record<string, any>

Parameters
NameType
keysreadonly K[]
Returns

Record<string, any>

Defined in

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


context

Optional context: TContext

Inherited from

Omit.context

Defined in

packages/delegate/src/types.ts:75


dataLoaderOptions

Optional dataLoaderOptions: Options<K, V, C>

Defined in

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


fieldName

Optional fieldName: string

Inherited from

Omit.fieldName

Defined in

packages/delegate/src/types.ts:69


fieldNodes

Optional fieldNodes: readonly FieldNode[]

Inherited from

Omit.fieldNodes

Defined in

packages/delegate/src/types.ts:74


info

info: GraphQLResolveInfo

Inherited from

Omit.info

Defined in

packages/delegate/src/types.ts:76


key

key: K

Defined in

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


lazyOptionsFn

Optional lazyOptionsFn: BatchDelegateOptionsFn<TContext, K>

Defined in

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


onLocatedError

Optional onLocatedError: (originalError: GraphQLError) => GraphQLError

Type declaration

▸ (originalError): GraphQLError

Parameters
NameType
originalErrorGraphQLError
Returns

GraphQLError

Inherited from

Omit.onLocatedError

Defined in

packages/delegate/src/types.ts:71


operation

Optional operation: OperationTypeNode

Inherited from

Omit.operation

Defined in

packages/delegate/src/types.ts:68


operationName

Optional operationName: string

Inherited from

Omit.operationName

Defined in

packages/delegate/src/types.ts:67


returnType

Optional returnType: GraphQLOutputType

Inherited from

Omit.returnType

Defined in

packages/delegate/src/types.ts:70


rootValue

Optional rootValue: any

Inherited from

Omit.rootValue

Defined in

packages/delegate/src/types.ts:77


schema

schema: GraphQLSchema | SubschemaConfig<any, any, any, TContext>

Inherited from

Omit.schema

Defined in

packages/delegate/src/types.ts:66


selectionSet

Optional selectionSet: SelectionSetNode

Inherited from

Omit.selectionSet

Defined in

packages/delegate/src/types.ts:73


skipTypeMerging

Optional skipTypeMerging: boolean

Inherited from

Omit.skipTypeMerging

Defined in

packages/delegate/src/types.ts:81


transformedSchema

Optional transformedSchema: GraphQLSchema

Inherited from

Omit.transformedSchema

Defined in

packages/delegate/src/types.ts:79


transforms

Optional transforms: Transform<any, TContext>[]

Inherited from

Omit.transforms

Defined in

packages/delegate/src/types.ts:78


validateRequest

Optional validateRequest: boolean

Inherited from

Omit.validateRequest

Defined in

packages/delegate/src/types.ts:80


valuesFromResults

Optional valuesFromResults: (results: any, keys: readonly K[]) => V[]

Type declaration

▸ (results, keys): V[]

Parameters
NameType
resultsany
keysreadonly K[]
Returns

V[]

Defined in

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