Need Assistance?

support@tutorialshub.in

Cloud Firestore (NoSQL Database)

Adding & Updating Documents (addDoc, setDoc, updateDoc)

ADVERTISEMENT
Firebase Free Lesson
5 min read
ADVERTISEMENT
  • addDoc() — Auto-generates a unique ID.
  • setDoc(ref, data, { merge: true }) — Creates or merges with a custom ID (like user.uid).
  • updateDoc() — Updates specific fields on an existing document.
ADVERTISEMENT
Hi, I'm Tuby! Here to help you