-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Federation Gateway resolving wrong field during buildQueryPlan #3415
Comments
This issue seems to originate in the groups stage of the build query plan. |
…cleaner fix" This reverts commit 390b0d4.
any news arround this issue |
@thicit do you have any idea what must be done to fix this issue and get it merged? |
This issue is fixed in #3581. |
Fixed by #3581. Please report back if this isn't the case! |
I'm transforming my Apollo GraphQL into a federated one and I'm seeing an issue with property types in my inline fragments being resolved incorrectly and throwing an error on the gateway
The query in question
This results in an error on the gateway
The same request does work when fed to the service itself.
In my query it will try to resolve
config.url
fromGridHtml
as a property ofGridTeaserConfig
(note that the previous fragment was of typeGridTeaser
) instead of treating config asGridHtmlConfig
. When removing theGridTeaser
fragment (or removing its config) the issue repeats itself on the next config,config.adUnit
being resolved as property ofGridHtmlConfig
instead ofGridBannerConfig
. Reordering (or deleting some fragments) shows that it always seems to resolve to the previous type's config instead of the correct one. Keeping only one of the configs (the HTML one for example) makes it work as expected.I'm seeing this in @apollo/gateway 0.10.4
Here is a repository (adjusted demo repo) that reproduces the behavior: https://github.com/WardGubbi/graphql-federation
The text was updated successfully, but these errors were encountered: