-
Notifications
You must be signed in to change notification settings - Fork 257
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
Ensure query variables used in the directives applied at the operation level are retained in subgraph queries #2986
Conversation
- Ensure query variables used in the directives applied at the operation level are retained in subgraph queries
👷 Deploy request for apollo-federation-docs pending review.Visit the deploys page to approve it
|
🦋 Changeset detectedLatest commit: 77d2cf7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @apollo/composition@2.7.4 ### Patch Changes - Updated dependencies \[[`d80b7f0ca1456567a0866a32d2b2abf940598f77`](d80b7f0)]: - @apollo/federation-internals@2.7.4 - @apollo/query-graphs@2.7.4 ## @apollo/gateway@2.7.4 ### Patch Changes - Updated dependencies \[[`d80b7f0ca1456567a0866a32d2b2abf940598f77`](d80b7f0), [`c89d8287e88d12cfd34c1baf1f42db672731b8a7`](c89d828)]: - @apollo/query-planner@2.7.4 - @apollo/federation-internals@2.7.4 - @apollo/composition@2.7.4 ## @apollo/federation-internals@2.7.4 ### Patch Changes - Fixed a regression created by PR (#2967), where directives would not be properly attached to their parent. (#2982) ([#2984](#2984)) ## @apollo/query-graphs@2.7.4 ### Patch Changes - Updated dependencies \[[`d80b7f0ca1456567a0866a32d2b2abf940598f77`](d80b7f0)]: - @apollo/federation-internals@2.7.4 ## @apollo/query-planner@2.7.4 ### Patch Changes - Fixed a regression created by PR (#2967), where directives would not be properly attached to their parent. (#2982) ([#2984](#2984)) - Ensure query variables used in the directives applied at the operation level are retained in subgraph queries (#2986) ([#2986](#2986)) - Updated dependencies \[[`d80b7f0ca1456567a0866a32d2b2abf940598f77`](d80b7f0)]: - @apollo/federation-internals@2.7.4 - @apollo/query-graphs@2.7.4 ## @apollo/subgraph@2.7.4 ### Patch Changes - Updated dependencies \[[`d80b7f0ca1456567a0866a32d2b2abf940598f77`](d80b7f0)]: - @apollo/federation-internals@2.7.4 ## apollo-federation-integration-testsuite@2.7.4 Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…le_usages` field Related PR: #2986
…leUsages` field (#3166) Fixed missing referenced variables in the `variableUsages` field of fetch operations Query variables used in fetch operation should be listed in the `variableUsages` field. However, there was a bug where variables referenced by query-level directives could be missing in the field. The previous PR (#2986) fixed a similar issue in fetch queries, but it didn't fully fix the issue by failing to update the `variableUsages` field. This PR completes the remaining issue. <!-- [FED-387] --> [FED-387]: https://apollographql.atlassian.net/browse/FED-387?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
This fixes another regression created by PR #2967.
Related: #2961