Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add graphene_enum_values function & test it
might be useful because Graphene 3 has changed from using enum values to enums, for example: ```python class TestEnum(graphene.Enum): FIRST = 'first' SECOND = 'second' ``` would've been serialized previously using the enum values, i.e. 'first' and 'second'. But with Graphene 3 they are serialized as 'TestEnum.FIRST' and 'TestEnum.SECOND'. This breaks functionality as parts of the codebase are expecting the enum values as per Graphene 2. Related https://github.com/graphql-python/graphene issues & PRs: - "Improve enum compatibility" PR: - graphql-python/graphene#1153 - "graphene3: enum doesn't resolve to value" issue: - graphql-python/graphene#1277 - "I would like my enum input values to be the enum instance instead of the enum values" issue: - graphql-python/graphene#1151 refs KK-1108
- Loading branch information