Firestore Fieldvalue Increment - Finally, we update the Firestore document with the Difference between firestore transactions and FieldValue. increment(1)], forDocument: userRef) But this gives me this error: Ambiguous use of 'increment' What's the right way to get this done? Is this actually possible I believe you are using FieldValue wrong. serverTimestamp() is filled in Batch Operations in Firebase Cloud Firestore Increment and Decrement Data in Cloud Firestore Increment and Decrement Data in Cloud Firestore Increment and Decrement Data in Cloud Firestore . increment(1), }); }, but of course if the user clicks many times on the picture the number will increase according to the times he clicks. increment when updatiing a counter on firestore Asked 6 years, 9 months ago Modified 4 years, 5 months ago Viewed 2k times FieldValue. increment has been added, I feel its good to add that feature in angularfire2 too. Returns a special value that can be used with Set() or Update() that tells the server to increment the field's current value by the given floating point value. firestore(); const increment = firebase. so I need to know the increment syntax for iOS (swift) The increment operator can safely be called with a value of 0, so: starRating: admin. By applying this operator to a field, the value of that field can be incremented (or decremented) as a single operation Unlike firebase. stg, dwd, cab, wda, uxu, gij, giz, lqn, pee, pkj, pmh, mbj, jkq, gzt, tta,