graphql-modules
Version:
Create reusable, maintainable, testable and extendable GraphQL modules
13 lines (12 loc) • 645 B
TypeScript
export interface ExecutionContextPicker {
getModuleContext(moduleId: string): GraphQLModules.ModuleContext;
getApplicationContext(): GraphQLModules.AppContext;
}
export declare const executionContext: {
create(picker: ExecutionContextPicker): () => void;
getModuleContext: ExecutionContextPicker['getModuleContext'];
getApplicationContext: ExecutionContextPicker['getApplicationContext'];
};
export declare function enableExecutionContext(): void;
export declare function getExecutionContextStore(): Map<number, ExecutionContextPicker>;
export declare function getExecutionContextDependencyStore(): Map<number, Set<number>>;