mongod

Promise based mongo driver built on mongojs

mongod

Promise based mongo driver built on mongojs

npm install mongod

Emulates the offical mongo api as far as is possible, except that the result of every operation is a promise, rather than being synchronous.

var mongo = require('mongod')
var db = mongo('connection-string', ['collectionA', 'collectionB'])
db.collectionA.find().skip(5).limit(10)
  .then(function (results) {
    console.dir(results)
  }).done()

MIT