-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
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
[Reopened] Type resolver is invoked when reference resolver returns null for interface entity #3135
Comments
FYI, reopened the issue with Federation and proper example. |
Thank for the repro! Indeed its a problem. We'll take a look. |
dariuszkuc
pushed a commit
that referenced
this issue
Sep 3, 2024
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
Reopening #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.
The text was updated successfully, but these errors were encountered: