Closed ssbb closed 7 years ago
Looks like it's not possible to use variable more than one time. Maybe we should dedup variables in query arguments?
Example:
photoSizeVar = Var.required "photoSize" .photoSize Var.int
used as
|> with (field "cover" [ ( "width", Arg.variable photoSizeVar ) , ( "height", Arg.variable photoSizeVar ) ] string )
Will produce query like this:
query ($photoSize: Int!, $photoSize: Int!) { ... }
Thanks for the report! I'll take care of this for the next patch release.
Looks like it's not possible to use variable more than one time. Maybe we should dedup variables in query arguments?
Example:
used as
Will produce query like this: