Repository navigation
Fix breaking change for @apollo/subgraph's buildSubgraphSchema - #4146
Merged
Merged
Conversation
2 of 4 tasks
@apollo/subgraph and fix breaking change@apollo/subgraph's buildSubgraphSchema
Contributor
Author
|
I initially tried to include the version bump (same as #4115) here, but it seems v2.15 have more breaking changes, outside of the scope of this issue/PR, so I reverted it and kept only the code changes for |
- inline the Federation 1 directive definitions, as "@apollo/subgraph/dist/directives" no longer exists - omit the federation types and schema definition that "printSubgraphSchema" now prints when generating definitions - print the mercurius `_service` SDL without relying on "printSubgraphSchema", whose output changed, and without the stub definitions that "buildSubgraphSchema" now adds for extension-only types, which "@mercuriusjs/gateway" doesn't support - bump @apollo/subgraph to 2.15.1 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
# Conflicts: # packages/graphql/package.json
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.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
This fixes
@apollo/subgraph's breaking change described in the issue below. This patch enables applications that use@nestjs/graphqlto also bump their@apollo/subgraphdependencies to v2.15 (at least for the apps that explicitly set federation version to2).Issue Number: #4145
What is the new behavior?
--
Does this PR introduce a breaking change?
Other information
--