@graphql-mesh/supergraph
Version:
13 lines (12 loc) • 542 B
text/typescript
import type { GetMeshSourcePayload, MeshHandler, MeshHandlerOptions, MeshSource, YamlConfig } from '@graphql-mesh/types';
export default class SupergraphHandler implements MeshHandler {
private config;
private baseDir;
private supergraphSdl;
private importFn;
private fetchFn;
private logger;
constructor({ config, baseDir, store, importFn, logger, }: MeshHandlerOptions<YamlConfig.Handler['supergraph']>);
private getSupergraphSdl;
getMeshSource({ fetchFn }: GetMeshSourcePayload): Promise<MeshSource>;
}