londonappbrewery / Authentication-Secrets

Companion Code for the Authentication Module on The Complete 2019 Web Development Bootcamp
https://www.appbrewery.co
440 stars 524 forks source link

[MONGODB DRIVER] Warning: Current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor. #31

Closed adya14 closed 1 year ago

adya14 commented 1 year ago

When i run nodemon app.js it crashes and is giving the following error: [MONGODB DRIVER] Warning: Current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.

adya14 commented 1 year ago

update your code to use the new Server Discovery and Monitoring engine by passing the option { useUnifiedTopology: true } to the MongoClient constructor.