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
I face an issue when I try to use Set Text for example as an input type argument in a query (or a mutation):
| • No instance for (morpheus-graphql-0.13.0:Data.Morpheus.Server.Deriving.Decode.DecodeKind
| Data.Morpheus.Kind.WRAPPER (Set Text))
| arising from a use of ‘interpreter’
I think it's just a matter of adding the right instance in here
I was thinking something like:
instanceDecodea=>DecodeSetawhere
decode =Set.fromList <$> (withList decode) -- assuming Eventless has a functor instance
As a side note, do you think it would be possible to add a custom wrapper type for the end user (without modifying morpheus) ? Or perhaps a "refiner" so that we can specify length restricted lists for instance ?
Thanks
The text was updated successfully, but these errors were encountered:
theobat
changed the title
Cannot use list-like wrappers as input types
Cannot use list-like (Set, Vector, Seq) wrappers as input types
Jul 1, 2020
Hey,
I face an issue when I try to use Set Text for example as an input type argument in a query (or a mutation):
I think it's just a matter of adding the right instance in here
I was thinking something like:
As a side note, do you think it would be possible to add a custom wrapper type for the end user (without modifying morpheus) ? Or perhaps a "refiner" so that we can specify length restricted lists for instance ?
Thanks
The text was updated successfully, but these errors were encountered: