vue-meteor
vue-meteor copied to clipboard
Incompatibility with Meteor-Files (collection prototype overloaded)
Installed ostrio:files and serving of images doesnt work, while vue-ssr enabled.
I investigated couple of hours and found:
in file server/data.js there are overloading of Mongo.Collection.prototype.find and Mongo.Collection.prototype.findOne with new functions. ostrio:files depends on these methods when serves images from uploads folder.
I understand it is done for some reason. What can we do here? Discussion is welcome.
For now I commented overloading of findOne. It is only used for serving of image. And i think it is not often used command in UI. And it can be raplaced with find().fetch()[0], if I need it in future.