Federated ArgumentParser is used to map entity representation to method arguments. When unwrapping nested fields, current logic was not accounting to nullability of the underlying field. If the underlying field returned non-null object, parser would fail trying to find the target property on NonNull GraphQL wrapper (which obviously doesn't exist).
Updated argument parser object handling logic to unwrap non-null types.
Note: this PR only addresses the issue with non-null types. Similar bug is present when handling keys with list representations.
Federated
ArgumentParser
is used to map entity representation to method arguments. When unwrapping nested fields, current logic was not accounting to nullability of the underlying field. If the underlying field returned non-null object, parser would fail trying to find the target property onNonNull
GraphQL wrapper (which obviously doesn't exist).Updated argument parser object handling logic to unwrap non-null types.
Note: this PR only addresses the issue with non-null types. Similar bug is present when handling keys with list representations.
Resolves: https://github.com/apollographql/federation-hotchocolate/issues/6