UNPKG

@graphql-mesh/openapi

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