Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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}'));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #mongodb #compass #js
ADD COMMENT
Topic
Name
5+7 =