Yash Dixit

Results 2 comments of Yash Dixit

> What you'll want to do is create an instance of MongoClient when your app starts and then use that client throughout your app. Although, how would you handle the...

[Look at this piece of code](https://gist.github.com/yash-dxt/5066dac1b9afaee67a820e89baef7ed4) - this works well for me. I've been using it in a production application for some time. I use only one connection throughout the...