Closed midnightLuke closed 1 week ago
Error message is:
Expected a value of type AppleType but received: instance of Application\\Entity\\AppleType. Cannot serialize value as enum: instance of Application\\Entity\\AppleType
Note that Enums appear to encode correctly.
Enums must be backed for the Doctrine ORM to map them properly.
Based on the documentation we need to put some special logic into the buildObjectField
function so that it will account for enums and convert them from a raw enum to the internal representation and let GraphQL take it from there.
GraphQL cannot decode enums properly, causing issues.