I am currently making an application which stores data for each day of the year. I was thinking that the format would be something similar to:
[
2022: {
january: {
week1: [
{
tasksCompleted: 5,
},
... other weeks
],
... other months
},
}, ... other years
]
I am not too sure how I can store data of this format into firebase. I am totally open to using any other structures that accomplish this goal. How could I update the tasksCompleted property of a single day directly into the dataRef.update() without having to perform an extra database read which gets the data, updates it locally, then sets it in firebase?