Documentation
API Reference
Packages
resolvers-composition

@graphql-tools/resolvers-composition

Type Aliases

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

NameType
Resolversextends Record<string, any> = Record<string, any>

Defined in

packages/resolvers-composition/src/resolvers-composition.ts:11


ResolversComposition

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

Type parameters

NameType
Resolverextends GraphQLFieldResolver<any, any, any> = GraphQLFieldResolver<any, any>

Type declaration

▸ (next): Resolver

Parameters
NameType
nextResolver
Returns

Resolver

Defined in

packages/resolvers-composition/src/resolvers-composition.ts:7