UNPKG

@graphql-mesh/thrift

Version:
16 lines (15 loc) 549 B
import { GetMeshSourceOptions, MeshHandler, YamlConfig } from '@graphql-mesh/types'; import { GraphQLSchema } from 'graphql'; export default class ThriftHandler implements MeshHandler { private config; private baseDir; private idl; private fetchFn; private importFn; private logger; constructor({ config, baseDir, store, fetchFn, importFn, logger }: GetMeshSourceOptions<YamlConfig.ThriftHandler>); getMeshSource(): Promise<{ schema: GraphQLSchema; contextVariables: Record<string, string>; }>; }