How I could append an element to an array like that ?.
Adding an item to an array structure like that, requires three steps:
- Read the existing data.
- Determine the key of the new item.
- Write the new item.
In code that’d be something like:
Note that this type of data structure is fairly non-idiomatic when it comes to Firebase, and I recommend reading: