@nestjs/graphql
Version:
Nest - modern, fast, powerful node.js web framework (@graphql)
14 lines • 724 B
TypeScript
import { ContextType, ExecutionContext } from '@nestjs/common';
import { ExecutionContextHost } from '@nestjs/core/helpers/execution-context-host';
import { GraphQLArgumentsHost } from './gql-arguments-host';
export type GqlContextType = 'graphql' | ContextType;
export type GraphQLExecutionContext = GqlExecutionContext;
export declare class GqlExecutionContext extends ExecutionContextHost implements GraphQLArgumentsHost {
static create(context: ExecutionContext): GqlExecutionContext;
getType<TContext extends string = GqlContextType>(): TContext;
getRoot<T = any>(): T;
getArgs<T = any>(): T;
getContext<T = any>(): T;
getInfo<T = any>(): T;
}
//# sourceMappingURL=gql-execution-context.d.ts.map