I have a field which indicates the number of transactions. I would like to increment it by 1
as soon as a transaction occurs. I could'nt find any method to directly execute this.
One method is to get the user first and then update the field with the received value + 1
, but this is too lengthy and slow.
Can anyone tell me any other feasible method?
question from:https://stackoverflow.com/questions/50762923/how-to-increment-existing-number-field-in-cloud-firestore