establish a connection to mongodb
Requires: module:mongodb
, module:loadConfig.js
Author: Jimmy Doughten https://github.com/dough10
Example (Example usage of mongo-connect module.)
const mongoConnect = require('modules/mongo-connect/mongo-connect.js');
mongoConnect().then(database => {
getNewUsers(database, 13).then(console.log); // = new users on the 13th
});