UNPKG

504 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.Parent = void 0;
4const gql_paramtype_enum_1 = require("../enums/gql-paramtype.enum");
5const param_utils_1 = require("./param.utils");
6/**
7 * Resolver method parameter decorator. Extracts the parent/root
8 * object from the underlying platform and populates the decorated
9 * parameter with the value of parent/root.
10 */
11exports.Parent = (0, param_utils_1.createGqlParamDecorator)(gql_paramtype_enum_1.GqlParamtype.ROOT);