Obtenir des données de Firestore en utilisant Async attend
const logCities = async () => {
let citiesRef = db.collection('cities');
let allCities = await citiesRef.get();
for(const doc of allCities.docs){
console.log(doc.id, '=>', doc.data());
}
}
Energetic Eagle