UNPKG

682 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.ResolveProperty = void 0;
4const common_1 = require("@nestjs/common");
5const resolve_field_decorator_1 = require("./resolve-field.decorator");
6const logger = new common_1.Logger('GraphQLModule');
7/**
8 * Property resolver (method) Decorator.
9 */
10function ResolveProperty(propertyNameOrFunc, typeFuncOrOptions, options) {
11 logger.warn('The "@ResolveProperty()" decorator has been deprecated. Please, use the "@ResolveField()" decorator instead.');
12 return (0, resolve_field_decorator_1.ResolveField)(propertyNameOrFunc, typeFuncOrOptions, options);
13}
14exports.ResolveProperty = ResolveProperty;