grpc-graphql-schema
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i grpc-graphql-schema

Weekly Downloads

3

Version

0.0.9

License

MIT

Unpacked Size

348 kB

Total Files

56

Last publish

Collaborators

  • harchiko
  • lhr0909
  • necmttn
  • osmanmesutozcan