mongoose-transaction
A node module for transaction-like db writes
mongoose-transaction handles insert, update and remove.
If any operation that you provide to mongoose-transaction fails, all the documents that involved in the process will return back to its old state.
Example:
var mongoose = ;var Transaction = mongoose; var transaction = ;transaction;transaction;transaction;transaction;
To run the tests:
npm test