Proper way to re-user mongodb connection in node.js
I tried searching on the web and found no obvious code samples of how reuse the mongodb.connection object. This is what I have currently and hopefully the following snippet would help you out as well. If you do not think this is the right way, please leave a comment. var app = express(); var mongodb… Read More »