Answers for "firestore increment fieldvalue web9"

5

Firestore increment field

const userRef = db.collection('documents').doc('document_id');
const increment = firebase.firestore.FieldValue.increment(1);

userRef.update({ FieldToIncrease: increment });
Posted by: Guest on July-03-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language