8 lines
134 B
JavaScript

const query = {
async *queryAll(ids) {
for (const id of ids) {
yield await this.query(id);
}
}
};