Skip to content

xanthous-tech/grpc-graphql-schema

Repository files navigation

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