UNPKG

nestjs-prisma-base

Version:

A comprehensive NestJS package providing base classes, utilities, and decorators for building CRUD APIs with Prisma ORM integration, featuring pagination, search, filtering, relation loading, configurable DTOs, and modular composition capabilities.

14 lines 472 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ModelName = ModelName; function ModelName(name) { return (target) => { Reflect.defineMetadata('model:name', name, target.prototype); Object.defineProperty(target.prototype, 'modelName', { get: function () { return Reflect.getMetadata('model:name', this); }, }); }; } //# sourceMappingURL=model-name.decorator.js.map