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
Well, I know this is the very wrong way to fix the problem, but I just added this to build.py:
argument_as_gql.register(list, lambda x: "[{}]".format(','.join(argument_as_gql(thing) for thing in x)))
And now it works for me. I wasn't able to find anything else in the docs or code that suggested I should be doing something a different way, and trying to pass a list of any type breaks on serialization, even though it does pass the validation step.
Hi @waynew, thanks for opening the issue. If this is something supported by the GraphQL spec, then quiz should support it. I'll have a look at fixing this.
I'm trying to translate a query like this GitHub query:
To quiz.
I expected this to work:
but it tells me that
TypeError: Cannot serialize to GraphQL: <class 'list'>
So what am I doing wrong here? I couldn't find any examples in the docs or examples.
The text was updated successfully, but these errors were encountered: