firebase realtime database increment value

Solutions on MaxInterview for firebase realtime database increment value by the best coders in the world

showing results for - "firebase realtime database increment value"
Maia
24 Feb 2020
1// It will automatically increase the value of db-path by 1
2database.ref('db-path').set(firebase.database.ServerValue.increment(1))
Aarón
09 Feb 2017
1Just do that manually
2// get val from database
3// increment val
4// set val in database