I am connecting to my MongoDB with node.js. The server connects to the database, but I get an annoying error message.
This is the error:
(node:9252) DeprecationWarning: 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.
here is my code which is located in a separate file that : server.js:
module.exports = {
mongoURI: 'mongodb://127.0.0.1:27017/shoppinglist'
}
I wish to connect to mongodb without having any errors. I am running version 3.4.18