David Marr
04/17/2022, 1:18 AMType 'JsonObject' must have a '[Symbol.iterator]()' method that returns an iteratorCode in question (mongodb):
const res = await db.tweet.aggregateRaw({
pipeline
});
for (const tweet of res);
Austin
04/19/2022, 11:46 PMres
?
I think aggregateRaw
returns an object, not an array, which means you can’t loop over it with a for of
style loop.