mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Allow to find the corresponding collection from the store.
This commit is contained in:
@@ -209,6 +209,11 @@ Mongo.Collection = function (name, options) {
|
||||
getDoc: function(id) {
|
||||
return self.findOne(id);
|
||||
},
|
||||
|
||||
// To be able to get back to the collection from the store.
|
||||
_getCollection: function () {
|
||||
return self;
|
||||
}
|
||||
});
|
||||
|
||||
if (!ok)
|
||||
|
||||
Reference in New Issue
Block a user