meteorhacks:collection-utils

v1.2.0Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

meteorhacks:collection-utils

Exposes some internal Mongo Connection apis into Mongo.Connection.

Currently exposed methods:

Mongo.Collection.prototype._getDb

To get the internal node mongodb database

1var Apps = new Mongo.Collection('apps');
2var db = Apps._getDb();

Mongo.Collection.prototype._getCollection

To get the internal node collection object

1var Apps = new Mongo.Collection('apps');
2var nodeColl = Apps._getCollection();