0.1.1 • Published 7 years ago

async-mongo v0.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

async-mongo

Asynchronous wrapper for mongodb.

Note: this is package is WIP.

Usage

import Mongo from 'async-mongo';

Mongo.connect('mongodb://localhost:27017/test', {}, (err, database) => {
  return db.find({ testing: true});
})
.then(res => {
  return db.insert({ testing: true})
}, err => {
  console.log('Docs not found');
})
.then(res => {
  console.log('Docs inserted');
});
0.1.1

7 years ago

0.1.0

7 years ago