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
I've defined a field in my schema that is an array of non-null elements ([T!]!). When an error occurs resolving one of the elements of the array, the null bubbles up to the element of the array rather than the next nullable field.
What did you expect?
Non-nullable elements should never be null. I expect the null to bubble up to the next nullable field, as defined in the specification.
What happened?
I've defined a field in my schema that is an array of non-null elements (
[T!]!
). When an error occurs resolving one of the elements of the array, the null bubbles up to the element of the array rather than the next nullable field.What did you expect?
Non-nullable elements should never be null. I expect the null to bubble up to the next nullable field, as defined in the specification.
Minimal graphql.schema and models to reproduce
There's a full repo with instructions here: https://github.com/edsrzf/gqlgen-null-repro
Schema:
Resolvers:
I used the models generated by gqlgen, but forced
Todo.user
to use a resolver.versions
gqlgen version
?0.9.1
go version
?1.12.6
The text was updated successfully, but these errors were encountered: