@graphql-mesh/openapi
Version:
17 lines (16 loc) • 682 B
TypeScript
import { MeshHandlerOptions, MeshHandler, MeshSource, YamlConfig, GetMeshSourcePayload } from '@graphql-mesh/types';
import { GraphQLSchema } from 'graphql';
export default class OpenAPIHandler implements MeshHandler {
private name;
private config;
private schemaWithAnnotationsProxy;
private bundleProxy;
private baseDir;
private logger;
private fetchFn;
private pubsub;
private importFn;
constructor({ name, config, baseDir, store, pubsub, logger, importFn, }: MeshHandlerOptions<YamlConfig.OpenapiHandler>);
getNonExecutableSchema(): Promise<GraphQLSchema>;
getMeshSource({ fetchFn }: GetMeshSourcePayload): Promise<MeshSource>;
}