var mongoUrl = '"mongodb://tfi-mfgbt.mongodb.net/test"' var mongoose = require('mongoose') mongoose.connect(mongoUrl, { useMongoClient: true }) mongoose.connection.on('error', err => debug('MongoDB connection error: ${err}'));