Open zvyn opened 1 month ago
More or less by accident I figured that this works, which is great:
FruitName = Annotated[other_module.FruitName, strawberry.enum(other_module.FruitName)]
Is this undocumented on purpose or should I add this to the Enum page in the docs? (I assume this doesn't work by accident)
Enum
I don't think it is supposed to work that way, I'd say the Annotated API should be:
FruitName = Annotated[other_module.FruitName, strawberry.enum(name="Fruit")]
More or less by accident I figured that this works, which is great:
Is this undocumented on purpose or should I add this to the
Enum
page in the docs? (I assume this doesn't work by accident)