Not a Strawberry Enum Error
Description
This error is thrown when trying to use an enum that is not a Strawberry enum, for example the following code will throw this error:
This happens because Strawberry expects all enums to be decorated with
@strawberry.enum
.
How to fix this error
You can fix this error by making sure the enum youβre using is decorated with
@strawberry.enum
. For example, the following code will fix this error: