Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolving Enum type from value is incredibly hard #3695

Open
jamietdavidson opened this issue Nov 14, 2024 · 0 comments
Open

Resolving Enum type from value is incredibly hard #3695

jamietdavidson opened this issue Nov 14, 2024 · 0 comments

Comments

@jamietdavidson
Copy link

jamietdavidson commented Nov 14, 2024

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

  • 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.
Fund with Polar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant