graphql-yoga
Version:
11 lines (10 loc) • 473 B
TypeScript
import type { YogaConfigContext } from '../types.js';
import type { Plugin } from './types.js';
export interface ConfigInServerContextOptions {
configContext: YogaConfigContext;
}
/**
* Injects the {@link YogaConfigContext} (most notably the `log`ger) into the server context,
* making it available to every plugin, hook and resolver handling the request.
*/
export declare function useConfigInServerContext({ configContext }: ConfigInServerContextOptions): Plugin;