mongodb-resource-client
Light wrapper around MongoDB client library to allow for easier management of resources and documents.
Components
Transactions
The module supports transactions for atomic updates of multiple collections. However, as only MongoDB replica sets support transactions, transaction support needs to be explicitly enabled via setting the environment variable DSQ_MONGOD_ENABLE_TRANSACTIONS=true
.
Installation
npm install @discue/mongodb-resource-client
Run tests
To run tests, run the following command
./test.sh
License
MIT