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
I have a mutation that returns a relay Node. The returned value is a django model. Depending on data inside the django model, I want to return a different object type (that all map to the same underlying django model). In Graphene this is simple. How do I do this in strawberry?
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
The text was updated successfully, but these errors were encountered:
In Graphene, this is so simple, it's great. See the
resolve_type
function here: https://docs.graphene-python.org/en/latest/types/interfaces/What I'm trying to do
I have a mutation that returns a relay
Node
. The returned value is a django model. Depending on data inside the django model, I want to return a different object type (that all map to the same underlying django model). In Graphene this is simple. How do I do this in strawberry?Upvote & Fund
The text was updated successfully, but these errors were encountered: