Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attach hooks to raw collections #276

Open
micktaiwan opened this issue Dec 7, 2021 · 3 comments
Open

attach hooks to raw collections #276

micktaiwan opened this issue Dec 7, 2021 · 3 comments
Labels

Comments

@micktaiwan
Copy link

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.

@mathiasbie
Copy link

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

@micktaiwan
Copy link
Author

No, I just overrided find, findOne, etc by hand. So I did what I wanted to avoid (redefining collection.find)

@mathiasbie
Copy link

OK thanks for the quick answer !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants