graphene-sqlalchemy icon indicating copy to clipboard operation
graphene-sqlalchemy copied to clipboard

`convert_column_to_enum` doesn't work at all

Open philiptzou opened this issue 8 years ago • 2 comments

This issue is related with three packages: graphql-core, graphene and graphene-sqlalchemy. Actually there are 2 separated problems related with the Enum type:

  1. In convert_column_to_enum, the returned value should be an instance of UnmountedType but not a subclass of UnmountedType.
  2. ChoiceType of sqlalchemy_utils coerces the result to Choice type or Enum subclass type (depend on which XxxxTypeImpl it used). But it's more pain in ass since there's no way to override GraphQLEnumType's serialize method like GraphQLScalarType did.

philiptzou avatar Oct 10 '16 01:10 philiptzou

3 pull-requests were issued in all 3 repositories to fix this problem. Now my ChoiceType finally worked.

philiptzou avatar Oct 10 '16 18:10 philiptzou

any updates on this issue?

richmondwang avatar Jun 20 '17 02:06 richmondwang

This should be fixed on master.

erikwrede avatar Feb 15 '23 10:02 erikwrede

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.

github-actions[bot] avatar Aug 15 '23 00:08 github-actions[bot]