meteor-collection-hooks
meteor-collection-hooks copied to clipboard
attach hooks to raw collections
What would be a simple way to attach hooks to raw collections (except by redefining collection.find, etc...) I really would like to use this package on mongodb raw collections.
Hello! Sorry for digging up such an old topic. I was wondering if you found a solution to the above issue? Sometimes, I want to perform bulkInsert/write/... operations on collection A and would like to retrieve everything I've inserted/modified to update counters in collection B (which depends on A)."
What are your thoughts on this?
Best regards, Mathias
No, I just overrided find, findOne, etc by hand. So I did what I wanted to avoid (redefining collection.find)
OK thanks for the quick answer !