Mongoose Throw Error When Non Existing Key is Present

后端 未结 0 1671
暖寄归人
暖寄归人 2021-01-12 01:25

I have a code where I am updating my schema object with request body. I have applied validation rules on the schema. The problem is, I want the schema to throw an error when

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