I am using google firebase to store and retrieve data for one of my application. I'm successfully able to push and retrieve the data to and from database. What I'm trying is to set a incremental ID to the document Auto ID of collection.
let db_push = firestore.database().ref('Table').push(); db_push.set({ name:name, age:age, location:location }) I'm able to push the data but the ID is setting something like afbghy67kju. And the age data pushing as a string. How can I set the auto numbering ID and push the age var as a number?