https://github.com/kaplanmaxe/async-mongo
Asynchronous wrapper for MongoDB
https://github.com/kaplanmaxe/async-mongo
Last synced: 2 months ago
JSON representation
Asynchronous wrapper for MongoDB
- Host: GitHub
- URL: https://github.com/kaplanmaxe/async-mongo
- Owner: kaplanmaxe
- Created: 2017-10-08T22:51:18.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-03-25T08:27:49.000Z (over 5 years ago)
- Last Synced: 2025-07-24T14:14:33.210Z (3 months ago)
- Language: JavaScript
- Size: 68.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# async-mongo
Asynchronous wrapper for mongodb.
Note: this is package is WIP.
### Usage
```javascript
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');
});
```