Interface implementations are missing #726
Labels
Bug 🐛
Something isn't working
Community 👨👧
Something initiated by a community
Solved ✔️
The issue has been solved
Milestone
Describe the Bug
Interface implementations are stripped by
type-graphql/src/schema/schema-generator.ts
Lines 591 to 593 in cd90856
unless interface is directly used in
@Mutation
or@Query
decorators.To Reproduce
Actual Behavior
Generated schema looks like
Expected Behavior
Generated schema looks like
Logs
Runtime Object type "Foo" is not a possible type for "IFace".
Environment (please complete the following information):
Additional Context
It apereas that
usedInterfaceTypes
inschema-generator.ts
is only properly populated after all field thunks are resolved, which doesn't happen until after we callnew GraphQLSchema
intype-graphql/src/schema/schema-generator.ts
Line 132 in cd90856
The text was updated successfully, but these errors were encountered: