Skip to content

Graphene Enum input returns EnumMeta instead of enum option value #1317

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

Closed
fredgido opened this issue Mar 21, 2021 · 2 comments
Closed

Graphene Enum input returns EnumMeta instead of enum option value #1317

fredgido opened this issue Mar 21, 2021 · 2 comments
Labels

Comments

@fredgido
Copy link

Using Enum on input of mutation the value given to the mutation is not the value of the enum.

I expect only the value of the enum choise to be returned.

Using this for example on DjangoModelFormMutation breaks simplicift and workflow.

  • Version: v3.0.0b7
  • Platform: django, linux

See image below as in kwargs it is returned EnumMeta instead of value correspondent on enum.
2021-03-20_23-59

@sbor23
Copy link

sbor23 commented Mar 24, 2021

See #1277 and consider closing this.

@fredgido
Copy link
Author

I see, I don't understand the need for it to return the enum but if it is designed that way I will live with it. I used a mixin to get the value if any input is enum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants