Meteor-Community-Packages / meteor-collection-hooks

Meteor Collection Hooks
https://atmospherejs.com/matb33/collection-hooks
MIT License
657 stars 92 forks source link

Can hook be called from Robomongo event? #209

Closed petr24 closed 7 years ago

petr24 commented 7 years ago

Is it possible to have a collection hook trigger when an action is performed via Robomongo?

For instance, if I remove a document from Robomongo the collection hook does nothing. However I have some server side observers for custom added/changed/removed and those get triggered when I do something via Robomongo. Not sure if this package can catch that same event. And the observers that I have only observe a subset of data so I can't rely on that for what I want.

Thanks.

matb33 commented 7 years ago

Unfortunately not. Collection hooks are wrapping method calls, not actually watching the database itself. With server-side observeChanges, I believe you could do what you want.

petr24 commented 7 years ago

Gotcha, Thanks! Great package regardless.