-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Support passing a list of paths to save()
#9583
Labels
new feature
This change adds new functionality, like a new method or class
Milestone
Comments
vkarpov15
added
the
new feature
This change adds new functionality, like a new method or class
label
Nov 25, 2020
vkarpov15
added a commit
that referenced
this issue
Mar 20, 2024
vkarpov15
added a commit
that referenced
this issue
Mar 20, 2024
feat: `pathsToSave` option to `save()` function
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Like how
validate()
supports a list of paths to validate, we allow passing an arraypathsToSave
that tells Mongoose to only validate and save the paths inpathsToSave
.See this Tweet for motivation: https://twitter.com/dreinidaho/status/1331404327412494338
The text was updated successfully, but these errors were encountered: