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

Firebase setData not saving to Firestore

Attempting to update values in my database. I checked and the type of ema.updatedIngredients that I'm passing to saveFunctions is a valid type in firestore. The saveRecipe function works fine if I would use updateData. It deletes the documents as…

VIEW QUESTION
Back To Top
Search