turing-mongo
v0.50.0
Published
A port to mongodb.
Downloads
94
Readme
turing-mongo
A promise port to mongodb.
API
To connect to a mongodb you simply have to require turing-mongo. It will return a promise which makes it easy to react to success and error.
const turingMongo = require('turing-mongo');
turingMongo.setupConnection().then(() => {
// do sth
}).catch((error) => {
throw error;
});
Config
- turing:mongo:host - The mongodb host(s) to connect to. (default: "localhost")
- turing:mongo:db - The mongodb db to connect to. (default: "turing")
- turing:mongo:user - The mongodb's user.
- turing:mongo:password - The mongodb user's password.
Contributors
- Benedikt Stemmildt
- Jonathan Meyer
License
Apache-2.0