Skip to content

Commit 2d1fe15

Browse files
Configured Proper Enum Handling
1 parent daa654d commit 2d1fe15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/strawberry_sqlalchemy_mapper/mapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def _convert_column_to_strawberry_type(
259259
corresponding strawberry type.
260260
"""
261261
if isinstance(column.type, Enum):
262-
type_annotation = column.type.python_type
262+
type_annotation = strawberry.enum(column.type.python_type)
263263
elif isinstance(column.type, ARRAY):
264264
item_type = self._convert_column_to_strawberry_type(
265265
Column(column.type.item_type, nullable=False)

0 commit comments

Comments
 (0)