MongoDB: Remove id form embeded documents

db.collection.update({},
{
  $unset: {
    "workers.worker.$[].id_group": ""
  }
},
{
  "multi": true
})
Topics: MongoDB

Related Code Examples