Closed MartinKavik closed 7 years ago
I'm not sure why you'd get exactly that output from that Elm code, but I can tell you that the first argument to Var.object
should not include any non-null or (!
) or list ([]
) modifiers. It should merely be the unmodified name of a single type in the GraphQL schema you're working with. What's still confusing to me, though, is why the type would be serialized as [HistoryItemfieldsHistoryItemField!]!!
instead of as [[HistoryItemfieldsHistoryItemField!]!]!
. I would have expected the Var.list
wrapper that you use to insert an extra pair of brackets.
(The name you're using there, also, is surprising to me: "HistoryItemfieldsHistoryItemField"
. Is that whole string the name of one of your types?)
Well, leave this issue to me, I'll try to fix it and create a more isolated and testable example + maybe send PR. Thanks.
fixed with #12, thanks!
Thank You very much for this package! I am new in the amazing Elm world, but love it and want to build our websites with it and your library. However I came across to a bug (?) and I'm not "Elm-experienced" enough to fix it / send PR alone yet.
Problem: (!! on the first line - it has to be !)
Example Query Variables:
GraphQL backend:
Elm Code:
Thank You for a fix / direction me to the right solution!
P.S. An idea - You could add jamesmacaulay/elm-graphql to