Create - WunderGraph

Usage

npx wgc monograph create <name> -r <routing-url> -u <graph-url>

Description

The npx wgc monograph create command allows you to create a new monograph on the Cosmo platform’s control plane. A monograph does not allow for GraphQL Federation as it is strictly limited to one subgraph. This subgraph is automatically created for you internally and you do not need to interact with it directly.

Parameters

Required Options

-r , --routing-url: The routing URL of your router. This URL defines the endpoint where the router will be accessible. The monograph will be accessible through this router. -u , --graph-url: The URL of your GraphQL server that is accessible from the router.

Other Options

Examples

npx wgc monograph create production -r http://router.example.com/graphql -u https://spacex-production.up.railway.app

Create a monograph named “production” with a routing URL of http://router.example.com/graphql and a GraphQL server endpoint of https://spacex-production.up.railway.app.

Notes