Skip to content
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

Fusion CLI to remove a subgraph from the package #6557

Closed
AlexeyRaga opened this issue Sep 27, 2023 · 3 comments
Closed

Fusion CLI to remove a subgraph from the package #6557

AlexeyRaga opened this issue Sep 27, 2023 · 3 comments
Labels
Area: Fusion Issue is related to Hot Chocolate Fusion 🌶️ hot chocolate
Milestone

Comments

@AlexeyRaga
Copy link
Contributor

Product

Hot Chocolate

Is your feature request related to a problem?

fusion compose provides a very easy way for composing a subgraph into a package. Doing it in CI is extremely helpful and useful!

However, there is no way to remove a subgraph from the package.

In a distributed system with multiple subgraphs, when one service gets deprecated, it should be possible to remove its subgraph from the final GraphQL schema.

The only workaround that I have found is to somehow figure out what subgraphs and of what versions contribute to the final package and re-compose all of them from scratch (minus the obsolete one).
But it feels uneasy, error-prone and laborious, for the same reason as why fusion allows to compose one subgraph into an existing package instead of always requiring the full list of subgraphs for every composition,

The solution you'd like

something like:

dotnet fusion remove -p <path-to-package> -s <name-of-the-subgraph-to-remove>

would be super handy.

@michaelstaib michaelstaib added this to the HC-13.6.0 milestone Sep 27, 2023
@michaelstaib michaelstaib added 🌶️ hot chocolate Area: Fusion Issue is related to Hot Chocolate Fusion labels Sep 27, 2023
@interad-woergoetter
Copy link

+1
I ran into the same issue just last week.
My solution was to create an empty schema for the subgraph I want to remove and pack that into the gateway package.

@michaelstaib michaelstaib modified the milestones: HC-13.6.0, HC-13.7.0 Oct 24, 2023
@glen-84
Copy link
Collaborator

glen-84 commented Oct 24, 2023

Was this resolved by #6584, or is that different?

@michaelstaib
Copy link
Member

Yes it was

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Fusion Issue is related to Hot Chocolate Fusion 🌶️ hot chocolate
Projects
None yet
Development

No branches or pull requests

4 participants