grpc-graphql-schema
v0.0.9
Published
Convert gRPC proto Definition into GraphQL Schema
Downloads
5
Keywords
Readme
Grpc Graphql Schema
Convert gRPC proto Definition into GraphQL Schema
How to Use
const { getGraphqlSchemaFromGrpc } = require('grpc-graphql-schema');
getGraphqlSchemaFromGrpc({
endpoint: 'localhost:50051',
protoFilePath: '/path/to/ServiceDefinition.proto',
serviceName: 'GrpcServiceName',
packageName: 'name.package',
}).then(schema => {
// load schema in graphql server
});