Answers for "(node:192) UnhandledPromiseRejectionWarning: MongooseError: Mongoose 5.x no longer supports `mongoose.connect(host, dbname, port)`"

3

mongoose connect

mongoose.connect('mongodb://username:password@host:port/database?options...', {useNewUrlParser: true});
Posted by: Guest on July-09-2020

Code answers related to "(node:192) UnhandledPromiseRejectionWarning: MongooseError: Mongoose 5.x no longer supports `mongoose.connect(host, dbname, port)`"

Browse Popular Code Answers by Language