TypeError: Cannot read property '_id' of undefined i am trying to update rawmaterial fields using this controller

前端 未结 0 1826
长发绾君心
长发绾君心 2021-02-05 23:14

i am trying to update fields using this


exports.updateRawmaterial = (req, res) => {
    // console.log(req.rawmaterial._id)
    Rawmaterial.findByIdAndUpdate(         


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