Thursday 28 February 2019

Respect validation

Why is mongoose not respect validation rules when updating data? Ex: one of the rules forbids the first name to be less than 2 characters, however, when updating from a put request, everything goes unnoticed. How can I change that?

Submitted February 28, 2019 at 07:21AM by r_gui

No comments:

Post a Comment