We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daa654d commit 2d1fe15Copy full SHA for 2d1fe15
src/strawberry_sqlalchemy_mapper/mapper.py
@@ -259,7 +259,7 @@ def _convert_column_to_strawberry_type(
259
corresponding strawberry type.
260
"""
261
if isinstance(column.type, Enum):
262
- type_annotation = column.type.python_type
+ type_annotation = strawberry.enum(column.type.python_type)
263
elif isinstance(column.type, ARRAY):
264
item_type = self._convert_column_to_strawberry_type(
265
Column(column.type.item_type, nullable=False)
0 commit comments