Closed harendra-kumar closed 6 years ago
Is it possible to use lists in input arguments? For example:
data UserNames = UserNames { getUserNames :: [Text] } deriving (Generic, Show) instance FromValue UserNames instance Defaultable UserNames instance HasAnnotatedInputType UserNames
Results in this error:
• No instance for (HasAnnotatedInputType [Text])
I am not sure what the purpose HasAnnotatedInputType is, what does Annotated mean in the name? There seem to be no instance of this for List types i.e. [a]. Is that just missing or is it not possible to make it, or it does not make sense?
HasAnnotatedInputType
Annotated
[a]
I can't find any tests passing lists in input objects, is it supported? Is there a right way to do it?
This is a duplicate of #142
Is it possible to use lists in input arguments? For example:
Results in this error:
I am not sure what the purpose
HasAnnotatedInputType
is, what doesAnnotated
mean in the name? There seem to be no instance of this for List types i.e.[a]
. Is that just missing or is it not possible to make it, or it does not make sense?