How do I Access multiple collections of database of mongoDB through node js when we are running app.js | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I Access multiple collections of database of mongoDB through node js when we are running app.js

I want chat feature and login, register feature for the website I'm working on, so is it necessary to have 2 collections separate for messages and login/register , if yes then how? if no, then how? thanks!

30th Sep 2017, 6:25 PM
Tharun K
Tharun K - avatar
2 Answers
30th Sep 2017, 6:27 PM
Burey
Burey - avatar
+ 1
sure ,checking that, thanks!
30th Sep 2017, 6:30 PM
Tharun K
Tharun K - avatar