-
-
Save DharmarajX24/dc64a9d2d7c86f7cb2f485041317ab27 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const querySnapshot = await getDocs(q); | |
const updatePromises = querySnapshot.docs.map((d) => updateDoc(d.ref)) | |
await Promise.all(updatePromises) | |
console.log("Documents updated") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment