📅  最后修改于: 2022-03-11 14:58:56.689000             🧑  作者: Mango
// Iterate over documents asynchronously
Thing.
find({ name: /^hello/ }).
cursor().
eachAsync(async function (doc, i) {
doc.foo = doc.bar + i;
await doc.save();
})