📅  最后修改于: 2022-03-11 14:57:44.632000             🧑  作者: Mango
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}'));