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