let allDB = await this.findAll();
//allDB output in console shows it has everything from db as I want
allDB .forEach(item => {
//item is undefined here
});
async findAll() {
return this.db.find()
}
I'm trying to load everything from a mongo collection and after that do a foreach loop trought it, but item is always undefined. Thanks for your help