how to retrieve the error object in the mongodb duplicate error

前端 未结 0 614
伪装坚强ぢ
伪装坚强ぢ 2021-02-05 02:34

I am working with nodejs and mongoose to store the user information as showed in the code

  const User = mongoose.model(\'User\')
  let user = new User(req.body);         


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