Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 471 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 471 Bytes

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();