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: add example of accessing save options in pre save #13498

Closed
2 tasks done
vkarpov15 opened this issue Jun 12, 2023 · 0 comments · Fixed by #13532
Closed
2 tasks done

docs: add example of accessing save options in pre save #13498

vkarpov15 opened this issue Jun 12, 2023 · 0 comments · Fixed by #13532
Labels
docs This issue is due to a mistake or omission in the mongoosejs.com documentation
Milestone

Comments

@vkarpov15
Copy link
Collaborator

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

Re: #8768 , we don't have good docs about accessing function params in middleware. It is more intuitive for query middleware, but tricky for pre save

@vkarpov15 vkarpov15 added the docs This issue is due to a mistake or omission in the mongoosejs.com documentation label Jun 12, 2023
@vkarpov15 vkarpov15 modified the milestones: 7.2.4, 7.3.1 Jun 12, 2023
vkarpov15 added a commit that referenced this issue Jun 21, 2023
docs(middleware): explain how to access query and save() parameters in middleware
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
1 participant