const mongoose = require('mongoose');
const config = require('./config');
mongoose.Promise = global.Promise;
mongoose.connect(config.mongo.url).then(() => {
  console.log('Connected to mongoDB');
});

module.exports = {
  mongoose: mongoose
};
@@ -102,16 +102,17 @@
 romise;%0A
+%0A
 mongoose
@@ -136,16 +136,43 @@
 ongo.url
+, %7B useNewUrlParser: true %7D
 ).then((
@@ -264,8 +264,9 @@
 goose%0A%7D;
+%0A

Update mongoose.js