Currently, there is only one router compatibility version. Consequently, this command does not yet serve a meaningful function (but will in the near future).

Requirements

PackageMinimum version
wgc0.74.0

Usage

npx wgc federated-graph version set <name> --version <router compatibility version>

Arguments

DescriptionType
The name of the federated graph.string

Options

OptionTypeValueRequiredDefault value
--version/-vstringThe router compatibility version to be set.truen/a
--namespace/-nstringThe namespace where the federated graph exists.false”default”

Description

The wgc federated-graph version set command allows a valid router compatibility version to be set for a federated graph.

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   │ 21
└────────────┴───────────┴──────────────────┴─────────────┘