why the mongoose validation not working how to make it work?

前端 未结 0 829
伪装坚强ぢ
伪装坚强ぢ 2021-02-08 14:40

My user schema has an name field that has type set to String but each time update the name to another type like number or boolean it convert to string so the validation not work

相关标签:
回答
  • 消灭零回复
提交回复
热议问题