Hello I\'m working on some firebase project and i can save my datas via javascript into firebase database. But i couldn\'t figure it out to auto increment child value (my ch
Firebase recommends using distributed counters: https://firebase.google.com/docs/firestore/solutions/counters
For the document that requires the counter, you'd initialize a subcollection of, say, 10 documents and run transaction increments on a random shard whenever you need a counter incremented.
Then you'd query the collection of shards and sum their counters.