UNPKG

@getcronit/pylon

Version:

![Pylon cover](https://github.com/user-attachments/assets/c28e49b2-5672-4849-826e-8b2eab0360cc)

13 lines (12 loc) 428 B
import { AsyncLocalStorage } from 'async_hooks'; import { FieldNode, GraphQLResolveInfo } from 'graphql'; export interface ExecutionContext { info: GraphQLResolveInfo; selectedFields: { name: string; fieldNodes: FieldNode[]; returnType?: any; }[]; } export declare const executionAsyncContext: AsyncLocalStorage<ExecutionContext>; export declare const getResolveInfo: () => ExecutionContext;