Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaplanmaxe/async-mongo
Asynchronous wrapper for MongoDB
https://github.com/kaplanmaxe/async-mongo
Last synced: about 18 hours 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 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-25T08:27:49.000Z (over 4 years ago)
- Last Synced: 2024-09-16T12:44:42.898Z (about 2 months ago)
- Language: JavaScript
- Size: 68.4 KB
- Stars: 0
- Watchers: 3
- 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');
});
```