Interface: CreateBatchDelegateFnOptions<TContext, K, V, C>
batch-delegate/src.CreateBatchDelegateFnOptions
Type parameters
| Name | Type |
|---|---|
TContext | Record<string, any> |
K | any |
V | any |
C | K |
Hierarchy
-
Partial<Omit<IDelegateToSchemaOptions<TContext>,"args"|"info">>↳
CreateBatchDelegateFnOptions
Table of contents
Properties
- argsFromKeys
- context
- dataLoaderOptions
- fieldName
- fieldNodes
- lazyOptionsFn
- onLocatedError
- operation
- operationName
- returnType
- rootValue
- schema
- selectionSet
- skipTypeMerging
- transformedSchema
- transforms
- validateRequest
- valuesFromResults
Properties
argsFromKeys
• Optional argsFromKeys: (keys: readonly K[]) => Record<string, any>
Type declaration
▸ (keys): Record<string, any>
Parameters
| Name | Type |
|---|---|
keys | readonly K[] |
Returns
Record<string, any>
Defined in
packages/batch-delegate/src/types.ts:25
context
• Optional context: TContext
Inherited from
Partial.context
Defined in
packages/delegate/src/types.ts:71
dataLoaderOptions
• Optional dataLoaderOptions: Options<K, V, C>
Defined in
packages/batch-delegate/src/types.ts:24
fieldName
• Optional fieldName: string
Inherited from
Partial.fieldName
Defined in
packages/delegate/src/types.ts:65
fieldNodes
• Optional fieldNodes: readonly FieldNode[]
Inherited from
Partial.fieldNodes
Defined in
packages/delegate/src/types.ts:70
lazyOptionsFn
• Optional lazyOptionsFn: (batchDelegateOptions: BatchDelegateOptions<TContext, K, any, K>) => IDelegateToSchemaOptions<TContext, Record<string, any>>
Type declaration
▸ (batchDelegateOptions): IDelegateToSchemaOptions<TContext, Record<string, any>>
Parameters
| Name | Type |
|---|---|
batchDelegateOptions | BatchDelegateOptions<TContext, K, any, K> |
Returns
IDelegateToSchemaOptions<TContext, Record<string, any>>
Defined in
packages/batch-delegate/src/types.ts:27
onLocatedError
• Optional onLocatedError: (originalError: GraphQLError) => GraphQLError
Type declaration
▸ (originalError): GraphQLError
Parameters
| Name | Type |
|---|---|
originalError | GraphQLError |
Returns
GraphQLError
Inherited from
Partial.onLocatedError
Defined in
packages/delegate/src/types.ts:67
operation
• Optional operation: OperationTypeNode
Inherited from
Partial.operation
Defined in
packages/delegate/src/types.ts:64
operationName
• Optional operationName: string
Inherited from
Partial.operationName
Defined in
packages/delegate/src/types.ts:63
returnType
• Optional returnType: GraphQLOutputType
Inherited from
Partial.returnType
Defined in
packages/delegate/src/types.ts:66
rootValue
• Optional rootValue: any
Inherited from
Partial.rootValue
Defined in
packages/delegate/src/types.ts:73
schema
• Optional schema: GraphQLSchema | SubschemaConfig<any, any, any, TContext>
Inherited from
Partial.schema
Defined in
packages/delegate/src/types.ts:62
selectionSet
• Optional selectionSet: SelectionSetNode
Inherited from
Partial.selectionSet
Defined in
packages/delegate/src/types.ts:69
skipTypeMerging
• Optional skipTypeMerging: boolean
Inherited from
Partial.skipTypeMerging
Defined in
packages/delegate/src/types.ts:77
transformedSchema
• Optional transformedSchema: GraphQLSchema
Inherited from
Partial.transformedSchema
Defined in
packages/delegate/src/types.ts:75
transforms
• Optional transforms: Transform<any, TContext>[]
Inherited from
Partial.transforms
Defined in
packages/delegate/src/types.ts:74
validateRequest
• Optional validateRequest: boolean
Inherited from
Partial.validateRequest
Defined in
packages/delegate/src/types.ts:76
valuesFromResults
• Optional valuesFromResults: (results: any, keys: readonly K[]) => V[]
Type declaration
▸ (results, keys): V[]
Parameters
| Name | Type |
|---|---|
results | any |
keys | readonly K[] |
Returns
V[]