db.yourcollection.update({
    "需要删除的字段": {
        "$exists": true
    }
}, {
    "$unset": {
        "需要删除的字段":null
    }
}, {
    multi: true
});

相关文章:

  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
  • 2021-09-03
  • 2021-12-21
  • 2021-10-06
  • 2021-10-26
  • 2022-01-18
猜你喜欢
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案