I need some guideline with this question.
I try to build an node express REST api which has to deal with various mongoDB databases on the same mongoDB server. What is the right approach to do this? The sequence could be: - app starts - connect to the mongoDB Server - use the right express route - check which database is needed - finally query the correct data - connection to the database is still open OR - use the right express route - connect to the mongoDB Server - check which database is needed - query the data - close the DB connection AND how can I do this with mongo-native driver, not mongoose? Thanks for any help. -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. To post to this group, send email to nodejs@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/ef81ac2f-48e5-4bf1-a429-48e836e17b6f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.