{"size": 206, "ext": "js", "max_stars_repo_path": "database/index.js", "max_stars_repo_name": "sabateklu/collin-newman-service", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "database/index.js", "max_issues_repo_name": "sabateklu/collin-newman-service", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "database/index.js", "max_forks_repo_name": "sabateklu/collin-newman-service", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.4285714286, "max_line_length": 115, "alphanum_fraction": 0.6893203883}
const mongoose = require('mongoose');

const db = (database) => (
  mongoose.connect(`mongodb://database:27017/${database}`, { useNewUrlParser: true }, { useUnifiedTopology: true })
);
module.exports = db;
