Unlink - WunderGraph

Usage

npx wgc subgraph unlink <source-subgraph-name>

Description

The npx wgc subgraph unlink command allows you to unlink a source subgraph from its linked target subgraph on the control plane. This removes the connection that was previously established using the wgc subgraph link command. After unlinking, schema checks performed on the source subgraph will no longer include validation against the previously linked target subgraph. This is useful when you want to stop cross-environment validation or when the linking relationship is no longer needed.

Parameters

Options

Examples

  1. Unlink a subgraph named “products” in the default namespace:
npx wgc subgraph unlink products
  1. Unlink a subgraph named “inventory” in the “staging” namespace:
npx wgc subgraph unlink inventory -n staging
  1. Unlink a subgraph with explicit namespace specification:
npx wgc subgraph unlink orders --namespace development

Notes