gRPC data source for Apollo Server, enabling partial query caching and integration with gRPC microservices. Version 1.0.2 is the latest stable release. Released as a single major version with no active development. Key differentiators: bridges Apollo's data source pattern with gRPC, supports DataLoader for batching, and works with Apollo's caching layer. Ships TypeScript types. Not to be confused with Apollo REST or SQL data sources.
npm install apollo-datasource-grpcNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to define a gRPC data source by extending GRPCDataSource, setting up gRPC client with proto loading, and implementing a method using callRPC.
Use default import syntax.
Assign `this.client = client` in constructor.
Do not pass arguments to super(). Configure via properties.
Use `import GRPCDataSource from 'apollo-datasource-grpc'` (default import)
Add `this.client = client;` inside the constructor after super()