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.

13 lines (12 loc) • 499 B
import { Logger } from '@nestjs/common'; import { ResolveField, } from './resolve-field.decorator.js'; const logger = new Logger('GraphQLModule'); /** * Property resolver (method) Decorator. * * @publicApi */ export function ResolveProperty(propertyNameOrFunc, typeFuncOrOptions, options) { logger.warn('The "@ResolveProperty()" decorator has been deprecated. Please, use the "@ResolveField()" decorator instead.'); return ResolveField(propertyNameOrFunc, typeFuncOrOptions, options); }