Catch the highlights of GraphQLConf 2023! Click for recordings. Or check out our recap blog post.
Docs
API Reference
Interfaces
MergedTypeEntryPoint

graphql-tools-monorepo / delegate/src / MergedTypeEntryPoint

Interface: MergedTypeEntryPoint<K, V, TContext>

delegate/src.MergedTypeEntryPoint

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

MergedTypeResolverOptions.args

Defined in

packages/delegate/src/types.ts:180


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

MergedTypeResolverOptions.argsFromKeys

Defined in

packages/delegate/src/types.ts:181


dataLoaderOptions

Optional dataLoaderOptions: Options<K, V, K>

Inherited from

MergedTypeResolverOptions.dataLoaderOptions

Defined in

packages/delegate/src/types.ts:183


fieldName

Optional fieldName: string

Inherited from

MergedTypeResolverOptions.fieldName

Defined in

packages/delegate/src/types.ts:179


key

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

Type declaration

▸ (originalResult): K | PromiseLike<K>

Parameters
NameType
originalResultany
Returns

K | PromiseLike<K>

Defined in

packages/delegate/src/types.ts:174


resolve

Optional resolve: MergedTypeResolver<TContext>

Defined in

packages/delegate/src/types.ts:175


selectionSet

Optional selectionSet: string

Defined in

packages/delegate/src/types.ts:173


valuesFromResults

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

Type declaration

▸ (results, keys): V[]

Parameters
NameType
resultsany
keysreadonly K[]
Returns

V[]

Inherited from

MergedTypeResolverOptions.valuesFromResults

Defined in

packages/delegate/src/types.ts:182