-
Notifications
You must be signed in to change notification settings - Fork 227
Closed
Labels
👀 more info neededneeds-replyIssue needs reply from author. Will be closed automatically after 4 weeks without response.Issue needs reply from author. Will be closed automatically after 4 weeks without response.
Description
I have the following sqlalchemy model:
class AccommodationModel(Base):
__tablename__ = "accommodations"
....
status = Column(Enum(AccommodationStatus), nullable=False, default=AccommodationStatus.creating)
And the following graphene model:
class AccommodationGraphQL(SQLAlchemyObjectType):
class Meta:
model = AccommodationModel
And I got the following error when selecting the status field from the query:
Enum 'AccommodationStatus' cannot represent value: <AccommodationStatus.active: 'creating'>
Metadata
Metadata
Assignees
Labels
👀 more info neededneeds-replyIssue needs reply from author. Will be closed automatically after 4 weeks without response.Issue needs reply from author. Will be closed automatically after 4 weeks without response.