I’m using ‘dillonkearns/elm-graphl’ and I need to send deeply nested union type to my GraphQL backend. GraphQL, however, does not support unions as input types : /
Does anyone have a workaround or a suggestion for this situation?
I was thinking on passing the type as a scalar and then validate it in the backend somehow.
Now, considering that same type is first received from the backend, can I assume that elm-graphql has generated an encoder for that type? Can it be leveraged when sending that type back?