Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Promise based mongo driver built on mongojs
JavaScript
Branch: master
Failed to load latest commit information.
test Fix test case so it actually tests what I meant to test
.gitignore Initial Commit
.travis.yml Remove 0.8 from travis
LICENSE Initial Commit
README.md Initial Commit
index.js Fix `cursor.count()`
package.json Release 1.3.0

README.md

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

Something went wrong with that request. Please try again.