UNPKG

@nestjs/graphql

Version:

Nest - modern, fast, powerful node.js web framework (@graphql)

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); }