UNPKG

@graphql-mesh/http

Version:
12 lines (11 loc) 810 B
import type { MeshInstance } from '@graphql-mesh/runtime'; import type { YamlConfig } from '@graphql-mesh/types'; export { resolvePlaygroundConfig } from './playground.cjs'; export type MeshHTTPHandler = ReturnType<typeof createMeshHTTPHandler>; export declare function createMeshHTTPHandler<TServerContext>({ baseDir, getBuiltMesh, rawServeConfig, playgroundTitle, renderGraphiQL }: { baseDir: string; getBuiltMesh: () => Promise<MeshInstance>; rawServeConfig?: YamlConfig.Config['serve']; playgroundTitle?: string; renderGraphiQL?: (options?: any) => string | Promise<string>; }): import("@whatwg-node/server").ServerAdapter<TServerContext, import("@whatwg-node/server").ServerAdapterBaseObject<TServerContext, import("@whatwg-node/server").ServerAdapterRequestHandler<TServerContext>>>;