@graphql-mesh/grpc
Version:
18 lines (17 loc) • 616 B
text/typescript
import type { GraphQLSchema } from 'graphql';
import type { MeshHandler, MeshHandlerOptions, YamlConfig } from '@graphql-mesh/types';
export default class GrpcHandler implements MeshHandler {
private config;
private baseDir;
private schemaWithAnnotationsProxy;
private logger;
private pubsub;
private fetchFn;
private importFn;
private sourceName;
constructor({ name, config, baseDir, store, logger, pubsub, importFn, }: MeshHandlerOptions<YamlConfig.GrpcHandler>);
private getCachedNonExecutableSchema;
getMeshSource(): Promise<{
schema: GraphQLSchema;
}>;
}