@graphql-tools/resolvers-composition

Type aliases#

ResolversComposerMapping#

Ƭ ResolversComposerMapping<Resolvers\>: { [TypeName in keyof Resolvers]?: { [FieldName in keyof Resolvers[TypeName]]: Resolvers[TypeName][FieldName] extends GraphQLFieldResolver<any, any\> ? ResolversComposition<Resolvers[TypeName][FieldName]\> | ResolversComposition<Resolvers[TypeName][FieldName]\>[] : ResolversComposition | ResolversComposition[]}} | { [path: string]: ResolversComposition | ResolversComposition[]; }

Type parameters:#

NameTypeDefault
ResolversRecord<string, any\>Record<string, any\>

Defined in: packages/resolvers-composition/src/resolvers-composition.ts:10


ResolversComposition#

Ƭ ResolversComposition<Resolver\>: (next: Resolver) => Resolver

Type parameters:#

NameTypeDefault
ResolverGraphQLFieldResolver<any, any\>GraphQLFieldResolver<any, any\>

Type declaration:#

▸ (next: Resolver): Resolver

Parameters:#

NameType
nextResolver

Returns: Resolver

Defined in: packages/resolvers-composition/src/resolvers-composition.ts:6