Is mongoose’s validator invalid for update

  mongodb, question

Mongoose defines required, min, max and other validators in scheme. it seems that it will only validate documents to be inserted by create (), but it does not seem to validate documents to be updated by update ().

If so, what is the use of this verification? Does mongoose’s validator really not validate the documents to be updated, then how to handle the updated validation?

Since MongoDB3.2, document model validation is supported on the server side. Why not use the official plan directly?
https://docs.mongodb.com/manu …