skip to Main Content

Updating multiple docs in firebase

let's say that i wanna update a serie of documents, i'm doing it using forEach like this. students.forEach(async (name) => { const docRef = doc(db, "students", name); await updateDoc(docRef, { school: "Some School", }); }); And it's working fine, but…

VIEW QUESTION
Back To Top
Search