To connect to MongoDB replica set directly, you can simple add ?connect=direct after connection string, e.g.,
mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?connect=direct
My personal blog about health, hobby, stock & investment, information technology, self improvement, tax and travel.
ไม่มีความคิดเห็น:
แสดงความคิดเห็น