You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Fields mapped as SIMPLE_ARRAY get converted to paginated Collection instead of array, and are not even normalized.
Fields mapped as JSON get converted to array and are normalized correctly, however appear as untyped Iterable in graphQL schema.
Just returning "[EMyEnum]" in TypeConverter does not work.
But it still doesn't work in denormalization: gets denormalized to strings instead of enums, and I had to convert each field in a MutationResolver manually.
API Platform version(s) affected: x.y.z
3.2.17
Description
Fields mapped as
SIMPLE_ARRAY
get converted to paginated Collection instead of array, and are not even normalized.Fields mapped as
JSON
get converted to array and are normalized correctly, however appear as untypedIterable
in graphQL schema.Just returning
"[EMyEnum]"
in TypeConverter does not work.works in introspection, but fails in normalization.
For the correct normalization I had to inject TypesContainer and use
But it still doesn't work in denormalization: gets denormalized to strings instead of enums, and I had to convert each field in a MutationResolver manually.
How to reproduce
The text was updated successfully, but these errors were encountered: