fix(federation/query-planning): Prevent error for satisfiable @shareable mutation fields#8352
Merged
sachindshinde merged 4 commits intodevfrom Oct 16, 2025
Merged
Conversation
✅ Docs preview readyThe preview is ready to be viewed. View the preview File Changes 3 new, 10 changed, 4 removedBuild ID: 8be98f32a1d4924fb5228093 URL: https://www.apollographql.com/docs/deploy-preview/8be98f32a1d4924fb5228093 |
This comment has been minimized.
This comment has been minimized.
bb6a401 to
308f954
Compare
Member
|
Corresponding JS fix |
@shareable mutation fields
308f954 to
fe269b1
Compare
fe269b1 to
ac12814
Compare
ac12814 to
2d9fa2f
Compare
Contributor
Author
|
@dariuszkuc |
duckki
approved these changes
Sep 30, 2025
Contributor
duckki
left a comment
There was a problem hiding this comment.
Looks great! The fix makes sense and I confirmed the test is now fixed.
1badade to
c39b11d
Compare
Contributor
Author
|
After further testing, there were two more changes needed:
|
Contributor
|
The follow-up update also looks good. Nice work! |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes a bug where query planning may unexpectedly error while planning an operation with a satisfiable
@shareablemutation field.Specifically, this PR:
@keyedges at top-level (previously only root type resolution edges were ignored).This PR is the equivalent of this JS repo PR.
Unrelatedly, this PR also fixes an error messaging issue when QP unexpectedly doesn't find a plan (this shouldn't happen, but if it did, it was previously using the wrong federation error enum and message).