There is no way to add an element to an array in the Firebase Realtime Database without first reading the entire array. So you'll have to:
This is one of the (many) reasons why Firebase recommends against using arrays for list-like structures and prefers using lists or maps. I recommend checking out Best Practices: Arrays in Firebase .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.