Object is not an Enum Error
Description
This error is thrown when applying @strawberry.enum
to a non-enum object, for
example the following code will throw this error:
This happens because Strawberry expects all enums to be subclasses of Enum
.
How to fix this error
You can fix this error by making sure the class youβre applying
@strawberry.enum
to is a subclass of Enum
. For example, the following code
will fix this error: