@kenniy/godeye-data-contracts
Version:
Enterprise-grade base repository architecture for GOD-EYE microservices with zero overhead and maximum code reuse
18 lines (17 loc) • 607 B
JavaScript
;
/**
* Base Aggregate Repository Interface - Unified MongoDB & SQL Aggregation
*
* Enterprise-grade aggregation layer that provides consistent API for both:
* - Mongoose (MongoDB aggregation pipelines)
* - TypeORM (SQL query builder with joins)
*
* Key Features:
* - Single aggregation query replaces multiple separate queries
* - Consistent API across both ORMs
* - Built-in pagination support
* - Complex joins and aggregations
* - Performance monitoring and optimization
* - Natural data flow without reshaping
*/
Object.defineProperty(exports, "__esModule", { value: true });