Aedes persistence, backed by MongoDB.
See aedes-persistence for the full API, and Aedes for usage.
npm i aedes aedes-persistence-mongodb --save
Creates a new instance of aedes-persistence-mongodb. It accepts a connections string url or you can pass your existing db object.
Example:
aedesPersistenceMongoDB({
url: 'mongodb://127.0.0.1/aedes-test' //optional when you pass db object
})
Or
aedesPersistenceMongoDB({
db:db
})
MIT