Determine Mongoose findByIdAndUpdate() error type

后端 未结 0 1809
执念已碎
执念已碎 2021-01-14 01:39

Re. mongoose findByIdAndUpdate(): How to determine proper error status code that whether id was not found (404) or passed data was invalid (422)?

Like al

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