Closed emil-nasso closed 2 years ago
Currently, all enums are converted to strings by the library.
This patch changes that behavior by only converting enums to strings if no other resolvers could be found for the field. This enables passing enums to resolvers/types.
I have rewritten the test to simplify the test-cases and make the purpose of the change a bit easier to understand.
Currently, all enums are converted to strings by the library.
This patch changes that behavior by only converting enums to strings if no other resolvers could be found for the field. This enables passing enums to resolvers/types.