christkv/node-mongodb-native — Issue #463: Server connection incompatible with Mongolab.com
Author: roboncode
Created: 2011-12-28 18:44:38+00:00
State: open

Mongolab.com only allows you to connect to a single Db. The driver api is like so:

mongodb://[username]:[password]@[server]:[port]/[db]

The driver as such does not allow you to connect to Mongolab db as it tries to add the following in the connection process.

mongodb://[username]:[password]@[server]:[port]/[db]:[port]

As well, you would already be connected to a particular db with Mongolab. so the next line would be problematic as well.

db_connector = new mongodb.Db('mydatabase', mongoserver);

Given that Mongolab is one of the biggest PaaS for Mongo, it would be nice to have this driver work with them.