Hey!
So I am handling nested data objects in my firebase database, I am currently reading the data by pushing into an array (calendarListModel) to work with within my app, a sample of this is;
[
{"date":1544443200000,"name":"Edward","status":1},
{"date":1544529600000,"name":"Katie","status":0},
{"date":1544616000000,"name":"Claire","status":1}
]
I will be creating a list, populated by all entries with a status of 0 (false), which I am working on shortly
there will be an accept/reject button for each entry, which will do either of the following;
Accept Button: change status to 1 (true)
Reject Button: Remove entry from database
How could I update just the status value in firebase, or delete the entire entry? each entry is held by an id which is the time it was booked?
Thanks
Edd