Update - WunderGraph

Usage

npx wgc federated-graph update <name> [-r, --routing-url <url>] [--label-matcher <labels...>] [--readme <path-to-readme>]

Update is an irreversible action. However, the change will only be visible to the routers once the composition has been successful. Until then, the routers will operate with the most recent valid composition. Please use federated-graph check to understand the impact of your change.

Description

The npx wgc federated-graph update command allows you to update an existing federated graph on the Cosmo platform’s control plane. With this command, you can modify the routing URL of your router and update the labels used to select the subgraphs to be federated.

Parameters

Options

Examples

npx wgc federated-graph update production -r http://new-router.example.com/graphql --selector team=B department=Engineering

Update the federated graph named “production” with an updated routing URL of “http://new-router.example.com/graphql” and update the labels to select subgraphs with “team=B” and “department=Engineering”.

Notes