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
In order to use interfaces as a return type, I have to explicitly include all of the types implementing the interface via the types argument in strawberry.Schema in order for those types to be included in the schema. This is inconvenient. I would like for strawberry to automatically detect these types for me (e.g., by looking for __subclasses__ of the implementing type), or at least have utilities that make this easier.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
In order to use interfaces as a return type, I have to explicitly include all of the types implementing the interface via the
types
argument instrawberry.Schema
in order for those types to be included in the schema. This is inconvenient. I would like for strawberry to automatically detect these types for me (e.g., by looking for__subclasses__
of the implementing type), or at least have utilities that make this easier.The text was updated successfully, but these errors were encountered: