Need help with API call to Firebase custom function
Database & APIs
I want to make a complex query that I was unable to do by querying a collecting from within Flutterflow.
So I created a custom function and deployed it on Firebase. Then I set up the API call in Flutterflow.
Now where I am confused is, how do I map datatypes for Document References? When I try to map the results to a List component parameters, I am unable to map them.
But when I run the test response, I get a list of items. For example, both the "Title" and "image1Votes" are "String" and "Int" respectively, but the returned values are List.
Which means that when I try to map them to the List component parameters, I am not able to do so. Eg. here you can see that I need a "String" but I an getting a "List":
Can idea what I am doing wrong here?
Did you check FlutterFlow's Documentation for this topic?