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
gqlgen always make a slice if field is set, even it set to null.
gqlgen/codegen/type.gotpl
Lines 20 to 27 in 0eef2fe
#1023 mentioned this as a question, but i believe this is a bug.
got nil for fields that set to null.
type Item { name: String! } type Query{ items(name: [String!]): [Item!] }
query { items(name: null) { name } }
gqlgen version
go version
The text was updated successfully, but these errors were encountered:
Test for nullable input slice 99designs#1203
d3bfc92
Fix 99designs#1203 Null input for slice should convert to nil rather …
422ab49
…than a empty slice not change IsNilable because other tests will fail if we do
Fixed via: #1242
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What happened?
gqlgen always make a slice if field is set, even it set to null.
gqlgen/codegen/type.gotpl
Lines 20 to 27 in 0eef2fe
#1023 mentioned this as a question, but i believe this is a bug.
What did you expect?
got nil for fields that set to null.
Minimal graphql.schema and models to reproduce
versions
gqlgen version
? v0.11.3go version
? 1.14The text was updated successfully, but these errors were encountered: