Object is not an Class Error
Description
This error is thrown when applying @strawberry.type/interface/input
to a
non-class 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.type/interface/input
to is a class. For example, the following
code will fix this error: