You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Diagnostics:
1. Argument of type '{ typeDefs: DocumentNode; resolvers: ResolversMap; }' is not assignable to parameter of type 'DocumentNode |
(DocumentNode | GraphQLSchemaModule)[] | LegacySchemaModule'.
Types of property 'resolvers' are incompatible.
Type 'ResolversMap' is not assignable to type 'GraphQLResolverMap<unknown>'.
'string' index signatures are incompatible.
Type 'GraphQLScalarType<unknown, unknown> | EnumResolver | ResolverOptions<any, any> | ResolverObject<any, any>' is not
assignable to type 'GraphQLScalarType<unknown, unknown> | { [enumValue: string]: string | number; } | { [fieldName: string]:
GraphQLFieldResolver<any, unknown> | { requires?: string | undefined; resolve?: GraphQLFieldResolver<...> | undefined; subscribe?:
GraphQLFieldResolver<...> | undefined; }; }'.
Type 'ResolverOptions<any, any>' is not assignable to type 'GraphQLScalarType<unknown, unknown> | { [enumValue: string]:
string | number; } | { [fieldName: string]: GraphQLFieldResolver<any, unknown> | { requires?: string | undefined; resolve?:
GraphQLFieldResolver<...> | undefined; subscribe?: GraphQLFieldResolver<...> | undefined; }; }'.
Type 'ResolverOptions<any, any>' is not assignable to type '{ [fieldName: string]: GraphQLFieldResolver<any, unknown> | {
requires?: string | undefined; resolve?: GraphQLFieldResolver<any, unknown> | undefined; subscribe?: GraphQLFieldResolver<...> |
undefined; }; }'.
Index signature for type 'string' is missing in type 'ResolverOptions<any, any>'. [2345]
Describe the Bug
Following the example from https://github.com/MichalLytek/type-graphql/tree/v2.0.0-rc.2/examples/apollo-federation-2. It seems that the return type of
createResolversMap
(ResolversMap
) is not compatible with the current version ofbuildSubgraphSchema
from@apollo/subgraph
. Full typescript error is:To Reproduce
Attempt to build a schema as in https://github.com/MichalLytek/type-graphql/blob/v2.0.0-rc.2/examples/apollo-federation-2/helpers/buildFederatedSchema.ts with the latest
type-graphql
and@apollo/subgraph
.Expected Behavior
Return value of
createResolversMap
should be compatible withbuildSubgraphSchema
.Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: