Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input List Coercion #41

Closed
JustinJudd opened this issue Dec 19, 2016 · 2 comments
Closed

Input List Coercion #41

JustinJudd opened this issue Dec 19, 2016 · 2 comments

Comments

@JustinJudd
Copy link

I stumbled across this conversation for a question for graphQL-relay, where they point out that the
GraphQL Spec details that list inputs should be able to handle a single value of the type that can be used in the list. I have been attempting this, for a input of [String!] but am getting the following error

graphql: graphql: panic occured: interface conversion: interface is string, not []interface {}

@neelance
Copy link
Collaborator

Thanks for reporting! :)

@JustinJudd
Copy link
Author

Thanks for the amazingly quick fix. Tested the list coercion as well as the new scalar interface and both work great.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants