mongo-unit-of-work
JSON →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.
Traffic · last 30 days stale · no recent hits
total hits 8
actors 1 distinct systems
last hit 21d ago human
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇹🇷 Turkey
Resources
packagemongo-unit-of-work ↗
API endpoints
full doc /v1/registry/mongo-unit-of-work