Requirements
Usage
npx wgc monograph version set <name> --version <router compatibility version>
Arguments
| Description |
Type |
| The name of the monograph. |
string |
Options
| Option |
Type |
Value |
Required |
Default value |
--version/-v |
string |
The router compatibility version to be set. |
true |
|
--namespace/-n |
string |
The namespace where the monograph exists. |
false |
”default” |
Description
The wgc monograph version set command allows a valid router compatibility version to be set for a monograph.
Output
If successful, a table will display the graph name, its namespace, the previous router compatibility version, and the current router compatibility version.
Example
> npx wgc federated-graph version set mygraph -v 1
✔ Successfully set the router compatibility version for federated graph "prod" to 1.
┌────────────┬───────────┬──────────────────┬─────────────┐
│ GRAPH NAME │ NAMESPACE │ PREVIOUS VERSION │ NEW VERSION │
├────────────┼───────────┼──────────────────┼─────────────┤
│ prod │ default │ 2 │ 1 │
└────────────┴───────────┴──────────────────┴─────────────┘