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
When a resolver of a non-null field in a type that is used in a null-null list of non-null elements returns null, null doesn't propagate up to the list, and then to data, but returns a null element in a list.
Example when Image(ctx context.Context, obj *Post) (*Image, error) returns nil, fmt.Errorf("error message")
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
What happened?
When a resolver of a non-null field in a type that is used in a null-null list of non-null elements returns null, null doesn't propagate up to the list, and then to
data
, but returns a null element in a list.Example when
Image(ctx context.Context, obj *Post) (*Image, error)
returnsnil, fmt.Errorf("error message")
What did you expect?
According to the spec, null should be propagated up to the first nullable field.
With this example:
Minimal graphql.schema and models to reproduce
versions
gqlgen version
?v0.11.3
go version
?v1.14.3
go modules
The text was updated successfully, but these errors were encountered: