In my project I'm using package which needs collection name to do some search inside collection. I just migrated into Meteor 1.3 and now this package doesn't work.
In the code package use something like:
const search = (collection_name) => {
let collection = this[collection_name]
...
}
Now collection is not in global scope anymore.
I could add my collection there doing global[collection_name] = Collection
in my lib/collections.js
, but I'd rather like to fix package to be more flexible and Meteor 1.3 compatible.
Are there any possibilities how to get Mongo Collection if you know only collection name?