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

Please clarify that findOne hook will be called when using update #191

Closed
jonlachlan opened this issue Jul 7, 2016 · 2 comments
Closed

Comments

@jonlachlan
Copy link

I had no idea that findOne hook ran when performing an update. It was not at all apparent to me that findOne would be involved with update. I think it would make sense to indicate this in the docs.

@matb33
Copy link
Collaborator

matb33 commented Jul 7, 2016

@jonlachlan
Copy link
Author

Yep, that's totally fair, and I don't have a problem with the behavior, I just think it should be documented, especially in the context of running hooks which could have side effects. In vanilla Meteor/Mongo, how it is implemented makes no difference to me as a developer, but in this context it was a pitfall.

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

No branches or pull requests

2 participants