@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
15 lines (12 loc) • 628 B
JavaScript
import { API_CONTROLLER_READ_PLAN_METADATA_KEY } from './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(API_CONTROLLER_READ_PLAN_METADATA_KEY, target, methodName);
}
export { ApiControllerReadPlanGet };
//# sourceMappingURL=get.utility.js.map