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

About

Convert gRPC proto definition into GraphQL Schema

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •