UNPKG

@graphql-mesh/utils

Version:
6 lines (5 loc) 464 B
import type { Logger, MeshFetch, OnFetchHook } from '@graphql-mesh/types'; import { type ExecutionRequest } from '@graphql-tools/utils'; export declare const requestIdByRequest: WeakMap<Request<unknown, CfProperties<unknown>>, string>; export declare const loggerForExecutionRequest: WeakMap<ExecutionRequest<any, any, any, Record<string, any>, any>, Logger>; export declare function wrapFetchWithHooks<TContext>(onFetchHooks: OnFetchHook<TContext>[]): MeshFetch;