@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
Name | Type |
---|---|
Resolvers | extends Record <string , any > = Record <string , any > |
Defined in
packages/resolvers-composition/src/resolvers-composition.ts:11
ResolversComposition
Ƭ ResolversComposition<Resolver
>: (next
: Resolver
) => Resolver
Type parameters
Name | Type |
---|---|
Resolver | extends GraphQLFieldResolver <any , any , any > = GraphQLFieldResolver <any , any > |
Type declaration
▸ (next
): Resolver
Parameters
Name | Type |
---|---|
next | Resolver |
Returns
Resolver
Defined in
packages/resolvers-composition/src/resolvers-composition.ts:7