@graphql-mesh/serve-runtime
Version:
14 lines (13 loc) • 1.48 kB
TypeScript
import type { MeshServeConfig, MeshServeContext } from './types.js';
export declare function createServeRuntime<TContext extends Record<string, any> = Record<string, any>>(config?: MeshServeConfig<TContext>): import("graphql-yoga").YogaServer<unknown, MeshServeContext> & {
(req: import("@whatwg-node/server").NodeRequest, res: import("@whatwg-node/server").NodeResponse, ...ctx: Partial<import("@whatwg-node/server").ServerAdapterInitialContext>[]): Promise<void>;
(requestLike: import("@whatwg-node/server").RequestLike, ...ctx: Partial<import("@whatwg-node/server").ServerAdapterInitialContext>[]): Promise<Response> | Response;
(request: Request, ...ctx: Partial<import("@whatwg-node/server").ServerAdapterInitialContext>[]): Promise<Response> | Response;
(fetchEvent: import("@whatwg-node/server").FetchEvent & Partial<import("@whatwg-node/server").ServerAdapterInitialContext>, ...ctx: Partial<unknown>[]): void;
(res: import("@whatwg-node/server").UWSResponse, req: import("@whatwg-node/server").UWSRequest, ...ctx: Partial<import("@whatwg-node/server").ServerAdapterInitialContext>[]): Promise<void>;
(container: {
request: Request;
} & Partial<import("@whatwg-node/server").ServerAdapterInitialContext>, ...ctx: Partial<import("@whatwg-node/server").ServerAdapterInitialContext>[]): Promise<Response> | Response;
} & import("@whatwg-node/server").ServerAdapterObject<unknown> & {
invalidateUnifiedGraph(): void;
} & AsyncDisposable;