Mongoose TX
Mongoose tx is a transaction helper that runs transaction with retry and commit with retry according to the Mongodb documentation
Credits
Took a lot of inspiration from the quite promising mongoose ACID library you can find here :
required
nodejs >= 7.6 | mongoose >= 5.2 | mongodb >= 4.0
usage
const Tx = ;await ;const app = ;app;app
test
npm test