Documentation
API Reference
Interfaces
MergedTypeConfig

graphql-tools-monorepo / delegate/src / MergedTypeConfig

Interface: MergedTypeConfig<K, V, TContext>

delegate/src.MergedTypeConfig

Type parameters

NameType
Kany
Vany
TContextRecord<string, any>

Hierarchy

Table of contents

Properties

Properties

args

Optional args: (originalResult: any) => Record<string, any>

Type declaration

▸ (originalResult): Record<string, any>

Parameters
NameType
originalResultany
Returns

Record<string, any>

Inherited from

MergedTypeEntryPoint.args

Defined in

packages/delegate/src/types.ts:181


argsFromKeys

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

Type declaration

▸ (keys): Record<string, any>

Parameters
NameType
keysreadonly K[]
Returns

Record<string, any>

Inherited from

MergedTypeEntryPoint.argsFromKeys

Defined in

packages/delegate/src/types.ts:182


canonical

Optional canonical: boolean

Defined in

packages/delegate/src/types.ts:169


dataLoaderOptions

Optional dataLoaderOptions: Options<K, V, K>

Inherited from

MergedTypeEntryPoint.dataLoaderOptions

Defined in

packages/delegate/src/types.ts:184


entryPoints

Optional entryPoints: MergedTypeEntryPoint<any, any, Record<string, any>>[]

Defined in

packages/delegate/src/types.ts:167


fieldName

Optional fieldName: string

Inherited from

MergedTypeEntryPoint.fieldName

Defined in

packages/delegate/src/types.ts:180


fields

Optional fields: Record<string, MergedFieldConfig>

Defined in

packages/delegate/src/types.ts:168


key

Optional key: (originalResult: any) => K | PromiseLike<K>

Type declaration

▸ (originalResult): K | PromiseLike<K>

Parameters
NameType
originalResultany
Returns

K | PromiseLike<K>

Inherited from

MergedTypeEntryPoint.key

Defined in

packages/delegate/src/types.ts:175


resolve

Optional resolve: MergedTypeResolver<TContext>

Inherited from

MergedTypeEntryPoint.resolve

Defined in

packages/delegate/src/types.ts:176


selectionSet

Optional selectionSet: string

Inherited from

MergedTypeEntryPoint.selectionSet

Defined in

packages/delegate/src/types.ts:174


valuesFromResults

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

Type declaration

▸ (results, keys): V[]

Parameters
NameType
resultsany
keysreadonly K[]
Returns

V[]

Inherited from

MergedTypeEntryPoint.valuesFromResults

Defined in

packages/delegate/src/types.ts:183