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

docs(middleware): clarify that doc.deleteOne() doesn't run query middleware currently #13707

Merged
merged 1 commit into from Aug 8, 2023

Conversation

vkarpov15
Copy link
Collaborator

Fix #13669

Summary

Middleware docs don't make it clear that doc.deleteOne() currently doesn't run query middleware. We're fixing this in #13660. Can't fix this in 7.x because we have tests that assert on this behavior. So add a section to the docs, and make sure to make a note of the breaking change in 8.x.

Examples

docs/middleware.md Show resolved Hide resolved
@hasezoey hasezoey added the docs This issue is due to a mistake or omission in the mongoosejs.com documentation label Aug 8, 2023
@vkarpov15 vkarpov15 merged commit 7287420 into master Aug 8, 2023
2 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-13669 branch August 9, 2023 08:13
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

Successfully merging this pull request may close these issues.

document.deleteOne() does not trigger the post hook of deleteOne middleware
2 participants