Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Generated array field unmarshalling handles errors incorrectly for input types #487
If any element in an array field fails to unmarshal in an input type, it should be reported to clients as an error.
If an error occurs unmarshalling any of the array elements but the last, the error is ignored.
Minimal graphql.schema and models to reproduce
And the generated code:
The error check should be inside the loop, not done at the end.