Skip to content

Normalization should happen on update as well as on save. #119

Description

@LiFaytheGoblin

for that to happen one needs to pass { runValidators: true } when calling an update method.
However, validation can also be forced using hooks

https://delventhalz.github.io/javascript/mongoose-hooks/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

modelrelease-1.0.0all features that have to be in for the first release

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions