Fetch - WunderGraph

Usage

npx wgc subgraph fetch <name>

Description

The npx wgc subgraph fetch command allows you to fetch the latest Schema Definition Language (SDL) of a subgraph graph from the Cosmo platform’s control plane. The fetched SDL represents the last schema of the subgraph graph. You can pass the name of the federated graph to fetch the latest successfully composed subgraph schema from the control plane.

Parameters

Options

Examples

npx wgc subgraph fetch products

Fetch the latest SDL of the subgraph graph named “products.”

npx wgc subgraph fetch products -g mygraph -n default

Fetch the latest successfully composed SDL of the subgraph graph named “products” in the “default” namespace.

Notes