Namespace of collectios and getting collection from documents.
meteor add shuttler:collection
var b = new Mongo.Collection('a');
b.insert({ _id: 'c' });
var c = b.findOne('c');
c.Collection() == b; // true
var d = new Mongo.Collection(null, { ref: 'd' });
d._ref == 'd'; // true
Shuttler.collection('d') == d; // true
Shuttler.collections();
// [b, d]
(condition: String|Function) => Mongo.Collection|undefined
new Mongo.Collection('e');
Shuttler.collection('e') == e; // true
Shuttler.collection(function(collection) { return collection._name == 'e'; }) == e; // true
() => [Mongo.Collection]
- Fix
lodash
dependence