menu_book Course Curriculum (Firebase) expand_more
Project Setup
Authentication
Firestore Basics
Firestore Advanced
Security Rules
Storage & Realtime DB
Cloud Functions & Messaging
transaction
Learn transaction in Firebase with a dedicated explanation, a topic-specific example, edge guidance, and a mastery check.
12 min read
•
Intermediate
Advertisement
firebase-034.js
javascript
await runTransaction(db,async tx=>{ const ref=doc(db,"counters","invoice"); const snap=await tx.get(ref); tx.update(ref,{value:snap.data().value+1}); });
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content