Brug denne syntaks:
// use %40 for @
mongoClient.connect("mongodb://username:p%[email protected]:port/dbname?authSource=admin", {
useNewUrlParser: true
}, function(err, db) {
}
);
Brug denne syntaks:
// use %40 for @
mongoClient.connect("mongodb://username:p%[email protected]:port/dbname?authSource=admin", {
useNewUrlParser: true
}, function(err, db) {
}
);