/meteor-collection-utils

Expose some underline collection apis

Primary LanguageJavaScriptMIT LicenseMIT

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

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

Mongo.Collection.prototype._getCollection

To get the internal node collection object

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