I am running a mongodb query, where I am using a find method to get the record , it's not updating even though the fields exist in mongodb
I have used find to fetch record which was giving me a mongoose record, then I used toJson() to convert to object so I can modify the fields. body = req.body; const data = model.find({target: body.target}); I am getting mongoose…