UNPKG

517 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.ResolveReference = void 0;
4const common_1 = require("@nestjs/common");
5const graphql_constants_1 = require("../graphql.constants");
6/**
7 * Property reference resolver (method) Decorator.
8 */
9function ResolveReference() {
10 return (target, key, descriptor) => {
11 (0, common_1.SetMetadata)(graphql_constants_1.RESOLVER_REFERENCE_METADATA, true)(target, key, descriptor);
12 };
13}
14exports.ResolveReference = ResolveReference;