Changing mongo database

时间:2015-05-08 10:05:50

标签: node.js mongodb node-mongodb-native

I want to query a collection in my replica set using the native 2.0 mongodb driver for node. I can connect and authenticated against the {% extends viewOnly == false ? ... %} database but how do I switch databases to query the collection I'm interested in?

45px

0 个答案:

没有答案