Move

Usage

npx wgc federated-graph move <name> -n fromNS -t toNS

Moving a federated graph will result in a new graph composition but only subgraphs from the target namespace are respected.

Description

The npx wgc federated-graph move command allows you to move a federated-graph into a different namespace.

Parameters

  • <name>: The name of the federated-graph you want to move.

Options

  • -n, --namespace : The namespace of the federated-graph.

  • -t, --to: The new namespace of the federated-graph.

Examples

  1. Moves the federated-graph named "mygraph" into the "production" namespace.

    npx wgc subgraph move mygraph -n default -t production

Last updated