We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
input Foo { dateAnswers: [Date!] }
And the generated code:
it.DateAnswers = make([]model.Date, len(rawIf1)) for idx1 := range rawIf1 { err = (&it.DateAnswers[idx1]).UnmarshalGQL(rawIf1[idx1]) } if err != nil { return it, err }
The error check should be inside the loop, not done at the end.
The text was updated successfully, but these errors were encountered:
Test for #487
7a82ab4
Looks like this has already been fixed on next.
Sorry, something went wrong.
Merge pull request #538 from 99designs/test-input-marshalling
9a48a00
Test for 99designs#487
0c9663a
Merge pull request 99designs#538 from 99designs/test-input-marshalling
96fe566
No branches or pull requests
Expected Behaviour
If any element in an array field fails to unmarshal in an input type, it should be reported to clients as an error.
Actual Behavior
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.
The text was updated successfully, but these errors were encountered: