An example project demonstrating how to automatically generate a GraphQL schema from gRPC service definitions. Version 0.0.14-alpha, built on commit 45c76fe, likely part of a larger toolchain (e.g., grpc-graphql-schema). No stable release; unmaintained since 2019. Key differentiator: auto-generates GraphQL schema and resolvers from protobuf, allowing GraphQL queries over gRPC backends without manual schema writing. However, it is an alpha example and not suitable for production.
npm install grpc-graphql-schema-exampleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This example shows how to load a protobuf file, create a gRPC client, generate a GraphQL schema using grpc-graphql-schema, and output the schema.
Replace 'grpc' with '@grpc/grpc-js' in imports and dependencies.
Reference the latest stable version of grpc-graphql-schema for production use.
Ensure the proto file uses unary RPCs for full compatibility.
npm install @grpc/grpc-js and replace 'grpc' with '@grpc/grpc-js'.
npm install grpc-graphql-schema
Use import { GrpcGraphQLSchema } from 'grpc-graphql-schema'