gett/mongojs — Issue #14: Allow access to the mongodb instance created
Author: rgerard
Created: 2012-02-24 06:49:08+00:00
State: open

I really love this project so far, but I'm trying to use the node module connect-mongodb for session management, and it requires you to pass in a mongodb object when you create an instance of the session store. I can see in your source that you are creating a mongodb instance in exports.connect (with the line, "new mongo.Db(...)"), but it doesn't appear that this value is available externally.

Would it be possible to expose this object so that we could access the mongodb instance directly? Is it already possible, and I'm just not seeing how? Thanks!