Create - WunderGraph

Usage

A gRPC subgraph name must be unique within a namespace.

wgc grpc-service create <name> -r <routing-url> [options]

After creating a gRPC subgraph, you can publish it with wgc grpc-service publish.

Description

The wgc grpc-service create command allows you to create a new gRPC subgraph within the Cosmo platform. The <name> argument specifies the name of the new gRPC subgraph. This establishes the subgraph metadata and routing configuration without publishing any schema.

Parameters

Options

Examples

wgc grpc-service create users-service -r dns:///localhost:4001/
wgc grpc-service create users-service -r dns:///localhost:4001/ --label team=backend
wgc grpc-service create users-service -r dns:///localhost:4001/ --readme ./service-readme.md
wgc grpc-service create users-service -r dns:///localhost:4001/ --namespace production

Notes