How to access error (thrown in post validate hook) when saving a document in mognoose?

前端 未结 0 450
挽巷
挽巷 2020-12-31 01:15

This is the mongoose schema. I have added a post validation hook to it and I throw an error in it. I want to access the error message when I save the document for this schem

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