Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 769 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 769 Bytes

Grpc Graphql Schema

Convert gRPC proto Definition into GraphQL Schema

Slides @ GraphQL BKK 4.0

Medium Article

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
});