Does something like process() method exist for collections?


#1

I need a process() method where i can do something to data like encrypt data, before being written to database. Essentially i am trying to encrypt every single piece of data being written to database. Is that possible?

OR is it ok to write this processing within Allow() method and return true?


#2

You’ll likely want to use collection hooks. https://github.com/matb33/meteor-collection-hooks


#3

Thanks! that certainly fits my needs. Mucho appreciation!