批量更新文档

collection.update()

  1. const dbCmd = db.command
  2. collection.where({name: dbCmd.eq('hey')}).update({
  3. age: 18,
  4. }).then(function(res) {
  5. });