I am trying to update a document in a collection (units) using GUI and after it gets updated I want to update the value (user.Units which is an array of Unit names) in collecti
i replaced the save methud with this statment: Client_data.Unit.updateOne({_id: unit._id},unit);