Answers for "add mongodb compass to js"

0

add mongodb compass to js

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}'));
Posted by: Guest on June-19-2021

Code answers related to "add mongodb compass to js"

Browse Popular Code Answers by Language