UNPKG

@graphql-mesh/grpc

Version:
17 lines (16 loc) 586 B
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; constructor({ config, baseDir, store, logger, pubsub, importFn, }: MeshHandlerOptions<YamlConfig.GrpcHandler>); private getCachedNonExecutableSchema; getMeshSource(): Promise<{ schema: GraphQLSchema; }>; }