Skip to content

Rover supergraph compose with a removed subgraph #2806

@joemccall86

Description

@joemccall86

Description

We're trying to remove some legacy subgraphs from our supergraph, and would like to compose it locally so we can see what compilation errors occur in generated clients when an entire subgraph is removed (assuming it composes).

What I tried was rover supergraph compose --graph-ref my-graph@uat --config override.yml, where the subgraph I want to remove is simply set to {}, but that didn't work (it just used the original configuration).

It would be useful for us if rover supported this in some capacity, whether it's the above syntax or something else. We're working around this by creating a new graph variant and removing the subgraph there, but ideally we'd like to do things locally where we can. It would help with our document and automation scripts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature 🎉new commands, flags, functionality, and improved error messagestriageissues and PRs that need to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions