These are chat archives for reactioncommerce/reaction

18th
Mar 2019
Andrea Valdi
@avaldi
Mar 18 08:31
Hey guys, did anybody ever try to add a "transformation" function to a Meteor Mongo Collection from a plugin? I'm trying to implement a very basic plugin to support i18n for content (products) but there seems to be no easy way to modify a Product Collection without touching the core code.
I've successfully managed to edit the Product schema to have the title as a dictionary. I was thinking of using the Meteor Collection transform function (https://docs.meteor.com/api/collections.html#Mongo-Collection) to make this change transparent and not break the rest of the app but there seems no way to assign a transform function to an existing Collection
Aditya
@HikvIneH
Mar 18 08:40
@avaldi I'm new here and never tried it, but referring to #4996 we can disable plugins via config and there should be a room for custom plugin in imports directory.