Using the results of this query:
const results = db.collection.aggregate([ { $match: { _id: { in: ids } } }, { $set