{"library":"mongo-unit-of-work","type":"library","category":null,"description":"A TypeScript library providing MongoDB repositories with a unit-of-work abstraction for transaction-scoped operations. Current stable version is 3.0.0, released on an active cadence. It wraps the MongoDB Node.js driver (7.x) and offers BaseRepository with CRUD methods, pagination, aggregation, and audit fields via AuditableRepository. Key differentiators include first-class transaction support without boilerplate, per-repository transaction opt-out, structured logging, and an event emitter for change notifications. Requires Node.js >=20.19.0 and a MongoDB replica set or sharded cluster for transactions.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install mongo-unit-of-work","imports":["import { BaseRepository } from 'mongo-unit-of-work'","import { UnitOfWork, getFactory } from 'mongo-unit-of-work'","import type { IEntity } from 'mongo-unit-of-work'"]},{"cmd":"yarn add mongo-unit-of-work","imports":[]},{"cmd":"pnpm add mongo-unit-of-work","imports":[]}],"homepage":"https://github.com/Zaid-AlOmari/mongo-unit-of-work#readme","github":"https://github.com/Zaid-AlOmari/mongo-unit-of-work","docs":null,"changelog":null,"pypi":null,"npm":"mongo-unit-of-work","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}