Skip to content

[feature] validateModifiedOnly as a SchemaOption #10153

Closed
@flawnn

Description

@flawnn

Can we have validateModifiedOnly as a configuration option for schemas? Passing the .save() function always custom options is not really efficient and could also be just done with one global setting.

Someone apparently also tried that too unintentionally, because passing it everytime seems also needless (#7492 (comment))

What is the current behavior?

We need to pass everytime when calling save() etc. a custom options object to enable validateModifiedOnly

What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Mongoose 5.12.0
NodeJS v14.16.0

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