Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.find().then(docs => docs.forEach(doSomething));
- nextFunction();
- const docs = await db.find();
- docs.forEach(doSomething);
- nextFunction();
- const docs = await db.find();
- await Promise.all(docs.map(doSomething));
- nextFunction();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement