@graphql-mesh/http
Version:
12 lines (11 loc) • 543 B
text/typescript
import { CORSOptions } from 'graphql-yoga';
import { MeshInstance } from '@graphql-mesh/runtime';
export declare const graphqlHandler: ({ getBuiltMesh, playgroundTitle, playgroundEnabled, graphqlEndpoint, corsConfig, batchingLimit, healthCheckEndpoint, }: {
getBuiltMesh: () => Promise<MeshInstance>;
playgroundTitle: string;
playgroundEnabled: boolean;
graphqlEndpoint: string;
corsConfig: CORSOptions;
batchingLimit?: number;
healthCheckEndpoint?: string;
}) => (request: Request, ctx: any) => Promise<Response>;