You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
I had no idea that
findOne
hook ran when performing anupdate
. It was not at all apparent to me thatfindOne
would be involved withupdate
. I think it would make sense to indicate this in the docs.The text was updated successfully, but these errors were encountered: