UNPKG

@graphql-mesh/http

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