Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const db = firebase.firestore()
- const counterRef = db.doc('counters/bigRedButtonCounter')
- /* Grab whatever the current counter counts value is... */
- incrementCounter() {
- counterRef.update({ counts: currentCounts + 1 })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement