Skip to content

Latest commit

 

History

History
executable file
·
14 lines (12 loc) · 483 Bytes

mongo-connect-doc.md

File metadata and controls

executable file
·
14 lines (12 loc) · 483 Bytes

mongo-connect.js

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
});