Updates an existing proposal for a federated graph.
npx wgc proposal update
command enables you to update an existing proposal for federated graph changes within the Cosmo platform. You can modify the proposal by adding, updating, or removing subgraphs from the proposal. This is useful when you need to make adjustments to a proposal that has not yet been approved.
When you specify subgraphs in the update command, they will completely replace the corresponding subgraphs in the existing proposal. The update is not incremental - each subgraph you provide through the command options will override any previous version of that subgraph in the proposal. If you need to maintain some existing changes while adding new ones, make sure to include all the subgraphs you want in the final proposal.
[name]
: The name of the existing proposal you want to update.-f, --federation-graph <federatedGraphName>
(required): The name of the federated graph this proposal is for.
-n, --namespace [namespace]
: The namespace of the federated graph (Default: “default”).
--subgraph <subgraph>
: Specify a subgraph to update in the proposal with its updated schema. Can be specified multiple times for different subgraphs.
name:subgraph-name,schemaPath:path-to-schema
--subgraph name:products,schemaPath:./schemas/products-updated.graphql
--new-subgraph <subgraph>
: Specify a new subgraph to add to the proposal. Can be specified multiple times.
name:subgraph-name,schemaPath:path-to-schema,labels:"key=value key=value"
--new-subgraph name:inventory,schemaPath:./schemas/inventory.graphql,labels:"team=B department=operations"
--deleted-subgraph <name>
: Specify a subgraph to be deleted in the proposal. Can be specified multiple times.
--deleted-subgraph outdated-service
--subgraph
, --new-subgraph
, or --deleted-subgraph
must be provided.