const mongoose = require('mongoose');
const config = require('./config');
mongoose.Promise = global.Promise;

mongoose.connect(config.mongo.url, { useMongoClient: true, useNewUrlParser: true }).then(() => {
  console.log('Connected to mongoDB');
});

module.exports = {
  mongoose: mongoose
};

@@ -143,30 +143,8 @@
 l, %7B
- useMongoClient: true,
  use

use mongoclient option not needed in 5