mongod

Promise based mongo driver built on mongojs

npm install mongod
17 downloads in the last day
72 downloads in the last week
327 downloads in the last month

mongod

Promise based mongo driver built on mongojs

Build Status Dependency Status NPM version

Installation

npm install mongod

API

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()

License

MIT

npm loves you