wgc grpc-service generate
Thegenerate command generates a protobuf definition and mapping file for a gRPC service from a GraphQL schema,
which can be used to implement a gRPC service and can be used for the composition.
Usage
Arguments
Options
Description
This command generates a protobuf definition for a gRPC service from a GraphQL schema.Examples
Generate a protobuf definition for a gRPC service from a GraphQL schema
Define a custom package name
Define a custom go package name
Output
The command generates multiple files in the output directory:service.proto: The protobuf definition for the gRPC serviceservice.mapping.json: The mapping file for the gRPC serviceservice.proto.lock.json: The lock file for the protobuf definition