UNPKG

@graphql-mesh/http

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