graphene-sqlalchemy
graphene-sqlalchemy copied to clipboard
`convert_column_to_enum` doesn't work at all
This issue is related with three packages: graphql-core
, graphene
and graphene-sqlalchemy
. Actually there are 2 separated problems related with the Enum type:
- In
convert_column_to_enum
, the returned value should be an instance ofUnmountedType
but not a subclass ofUnmountedType
. -
ChoiceType
ofsqlalchemy_utils
coerces the result toChoice
type or Enum subclass type (depend on whichXxxxTypeImpl
it used). But it's more pain in ass since there's no way to overrideGraphQLEnumType
'sserialize
method likeGraphQLScalarType
did.
3 pull-requests were issued in all 3 repositories to fix this problem. Now my ChoiceType
finally worked.
any updates on this issue?
This should be fixed on master.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topics referencing this issue.