Creates a proposal for a federated graph.
npx wgc proposal create
command allows you to create a new proposal for federated graph changes within the Cosmo platform. Proposals provide a way to suggest and review modifications to subgraphs within a federated graph before applying them. You can include existing subgraphs with schema changes, add new subgraphs, or remove existing subgraphs in a proposal.
[name]
: The name of the proposal you want to create. It should be a descriptive identifier for the proposal.-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 include 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.graphql
--new-subgraph <subgraph>
: Specify a new subgraph to add in the proposal. Can be specified multiple times.
name:subgraph-name,schemaPath:path-to-schema,labels:"key=value key=value"
--new-subgraph name:reviews,schemaPath:./schemas/reviews.graphql,labels:"team=B department=engineering"
--deleted-subgraph <name>
: Specify a subgraph to be deleted in the proposal. Can be specified multiple times.
--deleted-subgraph legacy-products
--subgraph
, --new-subgraph
, or --deleted-subgraph
must be provided.