Answers for "eprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect"

5

{ useNewUrlParser: true } to MongoClient.connect. warnning

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

Code answers related to "eprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect"

Code answers related to "Javascript"

Browse Popular Code Answers by Language