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

Update docs saying that you can't access the document being updated in pre('updateOne') #9434

Closed
vkarpov15 opened this issue Sep 19, 2020 · 0 comments
Labels
docs This issue is due to a mistake or omission in the mongoosejs.com documentation

Comments

@vkarpov15
Copy link
Collaborator

Re: #8218 (comment), you can access the document being updated if you're using document middleware rather than query middleware.

@vkarpov15 vkarpov15 added the docs This issue is due to a mistake or omission in the mongoosejs.com documentation label Sep 19, 2020
@vkarpov15 vkarpov15 added this to the 5.10.7 milestone Sep 19, 2020
@vkarpov15 vkarpov15 removed this from the 5.10.7 milestone Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This issue is due to a mistake or omission in the mongoosejs.com documentation
Projects
None yet
Development

No branches or pull requests

1 participant