Hi there,
I've been trying to set up a Firebase database that updates daily with new documents. I can make API calls, query the data, and display the values without any issues. However, I'm struggling with making an API call, looping through the results, and then either creating or updating documents in Firebase based on these results. After several days of attempts, I'm starting to wonder if this is even possible. If it is, could you advise on how I might achieve this? The reason I want to store it in firebase is because the database can become big and I do not always want to redo the API call which can cause degraded performance I suppose.
To give you an example, my API returns this array:
[
{
"name": "Alice",
"age": 28,
"city": "New York"
},
{
"name": "Bob",
"age": 34,
"city": "San Francisco"
},
{
"name": "Charlie",
"age": 25,
"city": "Chicago"
}
]
Now I want FlutterFlow to create 3 documents in a firebase database, with a name, age and city.