UNPKG

@nestjs/graphql

Version:

GraphQL for NestJS: code-first and schema-first APIs, resolvers as providers, subscriptions, federation and generated SDL, on Apollo or Mercurius.

14 lines • 730 B
import { ContextType, ExecutionContext } from '@nestjs/common'; import { ExecutionContextHost } from '@nestjs/core/helpers/execution-context-host.js'; import { GraphQLArgumentsHost } from './gql-arguments-host.js'; 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