Does something like process() method exist for collections?

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?

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

1 Like

Thanks! that certainly fits my needs. Mucho appreciation!