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.

16 lines • 630 B
import { ArgumentsHost } from '@nestjs/common'; import { ExecutionContextHost } from '@nestjs/core/helpers/execution-context-host'; export interface GraphQLArgumentsHost extends ArgumentsHost { getRoot<T = any>(): T; getInfo<T = any>(): T; getArgs<T = any>(): T; getContext<T = any>(): T; } export declare class GqlArgumentsHost extends ExecutionContextHost implements GraphQLArgumentsHost { static create(context: ArgumentsHost): GqlArgumentsHost; getRoot<T = any>(): T; getArgs<T = any>(): T; getContext<T = any>(): T; getInfo<T = any>(): T; } //# sourceMappingURL=gql-arguments-host.d.ts.map