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 (13 loc) • 462 B
import 'reflect-metadata'; import { GqlParamtype } from '../enums/gql-paramtype.enum.js'; import { createGqlPipesParamDecorator } from './param.utils.js'; /** * Resolver method parameter decorator. Extracts the `Info` * object from the underlying platform and populates the decorated * parameter with the value of `Info`. * * @publicApi */ export function Info(...pipes) { return createGqlPipesParamDecorator(GqlParamtype.INFO)(undefined, ...pipes); }