DEV Community

Discussion on: 🌱 Complete REST API with MongoDB Atlas cloud, Node, and Express in 10 minutes

Collapse
 
simsushare profile image
Jonathan Kaye

Hi Lenmor, great tutorial exactly what I needed as a start for my analytics. Easy and quick to go through. One update you might want to make to the mongo connect invocation is to add a couple options to avoid the deprecation warning about the Server Discovery and Monitoring engine.

// db.js
...
MongoClient.connect(dbConnectionUrl,
{
useNewUrlParser: true,
useUnifiedTopology: true
},
...

Should be easy to figure out for viewers. Again, thanks so much!