When I run a simple NodeJS project to upload data to a database using MongoDB, I get the following errors:
(node:3556) 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.
Why? and how can I fix this?