Converts gRPC protobuf service definitions into a GraphQL schema, enabling GraphQL servers to proxy requests to gRPC backends. Current version 0.0.9 is experimental with minimal maintenance. Unlike manual schema stitching or resolvers, this library auto-generates both type definitions and resolvers from .proto files. Requires gRPC endpoint and proto file path. Suitable for rapid prototyping but not production due to limited error handling and no streaming support.
npm install grpc-graphql-schemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to load a gRPC proto file and create an Apollo GraphQL server proxying to gRPC.
Verify protoFilePath, endpoint, and ensure gRPC server is running before querying.
Use alternative libraries like graphql-grpc for streaming support.
Pin gRPC version manually or migrate to actively maintained alternatives.
Review generated schema and manually rename fields if needed using a schema transformation step.
Use graphql@14 or override peer deps at own risk.
Run 'npm install grpc-graphql-schema' and ensure node_modules contains it.
Change import to 'const { getGraphqlSchemaFromGrpc } = require('grpc-graphql-schema');'Check protoFilePath points to an existing .proto file with read permissions.
Ensure gRPC server is running on the specified endpoint and host is accessible.