📜  将 mongodb 指南针添加到 js - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:44.632000             🧑  作者: Mango

代码示例1
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}'));