gett/mongojs — Issue #9: Make [collections] optional on connect
Author: goldfire
Created: 2011-11-30 01:30:54+00:00
State: open

I'm not familiar enough with the native mongodb driver to know if this is possible, but in drivers for other languages I'm not forced to create an array of all of the collections contained in my database.

Instead of this:

db = require('mongojs').connect('db', ['coll1', 'coll2', 'coll3', 'coll4', 'coll5', 'coll6', 'coll7', 'coll8', 'coll9']);

It would be much more convenient to be able to just do the following and have access to all of those collections:

db = require('mongojs').connect('db');