@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
17 lines (13 loc) • 670 B
JavaScript
;
var metadataKey_constant = require('./metadata-key.constant.js');
/**
* Returns the compiled generated-read plan attached to a controller method.
* @param {object} target - Controller prototype that owns the generated method.
* @param {string} methodName - Generated controller method name.
* @returns {IApiControllerReadPlan | undefined} Stored read plan, when configured.
*/
function ApiControllerReadPlanGet(target, methodName) {
return Reflect.getMetadata(metadataKey_constant.API_CONTROLLER_READ_PLAN_METADATA_KEY, target, methodName);
}
exports.ApiControllerReadPlanGet = ApiControllerReadPlanGet;
//# sourceMappingURL=get.utility.js.map