阅读背景:

如何在mongoose中更新多个文档

来源:互联网 

I found the following script:

我找到了以下脚本:

Device.find(function(err, devices) {
  devices.forEach(function(device) {
    device.cid = '';
    device.save();
  });
});
Dev



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: