i want to find a way to retrieve my data from my cloud firestore and save it to an object so I can iterate through it, this was my attempt, but I'm sure this might be an array not an object
   async function findTrades() {
        const ref1 = admin.firestore().collection("bets");
        const snapshot = await ref1.get();
        const bets = [];
        snapshot.forEach(doc => {
            bets.push(doc.data());
        });
        const tokenIds = await Promise.all(results);
        return console.log("Here =>" + tokenIds);
    }
I want to be able to iterate through it like this
  bets.forEach(async match => { console.log(bets.id.name)
    });
 
     
    