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
It looks like the generated code uses the enum's toString functions within the InputObject module. Here's an example of what is generated for the Star Wars API example:
I have following GraphQL Enum:
It generates an
src/Api/Enum/Order.elm
file with following type:However, the generated
src/Api/InputObject.elm
file references a functionencodeOrder
which isn't defined anywhere.I was able to fix it by adding it manually:
Is this a bug and it should be generated automatically, or am I missing something?
The text was updated successfully, but these errors were encountered: