Skip to content

ChoiceType column doesn't result in a field #199

Closed
@thejcannon

Description

@thejcannon

Given

class MyModel(Base):
   foo = Column(ChoiceType([('X', 1)])

class MyModelNode(SQLAlchemyObjectType):
   class Meta:
      model= MyModel

I'm missing "foo" from the generated schema.

I believe this is due to the fact that convert_column_to_enum is returning an instance of graphene.Enum, which isn't a MountedScalar or a Field (notice convert_enum_to_enum returns a Field)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugwaitingWaiting for an other issue / project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions