Answers for "To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect. (node:18660) UnhandledPromiseRejectionWarning: MongooseServerSelectionError: getaddrinfo ENOTFOUND locolhost"

5

{ useNewUrlParser: true } to MongoClient.connect. warnning

mongoose.connect("mongodb://localhost:27017/YourDB", { useNewUrlParser: true });
Posted by: Guest on May-13-2020
0

To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect

MongoClient.connect("mongodb://localhost:27017/YourDB", { useNewUrlParser: true })
Posted by: Guest on April-03-2020

Code answers related to "To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect. (node:18660) UnhandledPromiseRejectionWarning: MongooseServerSelectionError: getaddrinfo ENOTFOUND locolhost"

Code answers related to "Javascript"

Browse Popular Code Answers by Language