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): fix old example using post('remove') #13683

Merged
merged 2 commits into from
Aug 1, 2023

Conversation

vkarpov15
Copy link
Collaborator

Fix #13518

Summary

#13518 points out that we still had some examples in the middleware docs that used remove, even though remove is no longer supported in Mongoose 7. This PR changes those examples to use deleteOne() instead.

Examples

@hasezoey hasezoey added the docs This issue is due to a mistake or omission in the mongoosejs.com documentation label Aug 1, 2023
@vkarpov15 vkarpov15 merged commit 22cfb3b into master Aug 1, 2023
34 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-13518 branch August 1, 2023 18:46
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.

Missing TypeScript type definition for "pre and post middleware remove '' method
2 participants