Skip to content

Support passing a list of paths to save() #9583

@vkarpov15

Description

@vkarpov15

Like how validate() supports a list of paths to validate, we allow passing an array pathsToSave that tells Mongoose to only validate and save the paths in pathsToSave.

See this Tweet for motivation: https://twitter.com/dreinidaho/status/1331404327412494338

Metadata

Metadata

Assignees

No one assigned

    Labels

    new featureThis change adds new functionality, like a new method or class

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions