Open aliosmanisikk opened 1 week ago
@dariuszkuc
FYI, reopened the issue with Federation and proper example.
Thank for the repro! Indeed its a problem. We'll take a look.
This should be fixed in fed v2.9.1 that will be released this week.
Thanks @dariuszkuc . Looking forward to it.
I confirmed the fix with @apollo/subgraph@2.10.0-alpha.1
Issue Description
Reopening https://github.com/apollographql/federation/issues/3123
Issue Description
When
__resolveReference
returnsnull
for interface entity, there is no need to invoke__resolveType
. However, it is being invoked and causing issues with resolving type fornull
value.I tested the behavior for Union or Interface type. For those, it works as expected. Issue occurs for Interface Entity only.
Link to Reproduction
https://github.com/aliosmanisikk/apollo-subgraph-interface-entity-type-resolver
Reproduction Steps
Running query for the shopping list where all products are resolved is fine.
When there is a product in the shopping list which is no longer exists (entity resolves null), then an error is thrown by the subgraph.