I’m writing my own package and I need to rely on dburles:mongo-collection-instances
. I know that the collection instances package will modify the Mongo.Collection
object, but I can’t see to use Mongo.Collection.getAll()
from within my custom package.
var collections = Mongo.Collection.getAll(); // Doesn't work
console.log('collections', collections);
My package.js
:
Package.onUse(function(api) {
api.versionsFrom('1.0.3.1');
api.use('jquery');
api.use('mongo');
api.use('session');
api.use('matb33:collection-hooks');
api.use('dburles:mongo-collection-instances');
api.use('accounts-base', ['client', 'server'], {weak: true});
...
});