-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hello,
I'm trying to create a GraphQL query template with variables. I have code like this:
type ContextsForNgramsQuery
= { my_query :: Args
{ my_ids :: Var "my_ids" (Array Int) }
{...} }and I use it like this later:
{ my_query: Var :: _ "my_ids" (Array Int) } ==> ...
However, I'm getting this error:
No type class instance was found for
GraphQL.Client.Args.ArgGql Int
(Array Int)
while solving type class constraint
GraphQL.Client.Args.ArgGql Int
(Var @Symbol @Type "ngrams_ids" (Array Int))
When I replace my_ids to Var "my_ids" Int, this compiles without errors.
Does this mean Array Int is not supported as ArgGql and if so, is there any reason to do this? Here
I see in particular this instance:
instance argToGqlArray :: ArgGql param arg => ArgGql (Array param) (Array arg)I guess we could add this as well?
instance ArgGql param arg => ArgGql param (Array arg)Metadata
Metadata
Assignees
Labels
No labels