Open happy-little-one opened 4 years ago
I hope it can return a Promise,iterator is a trouble to me, now I have to code like this:
const dbScan = async () => { const arr = [] for await (const item of mapper.scan(Category, { limit: 2 })) { arr.push(item) } return arr }
I can not image a business scenario that need to be an Iterator.
I hope it can return a Promise,iterator is a trouble to me, now I have to code like this:
I can not image a business scenario that need to be an Iterator.