Can someone explain to me how I am to query a firebase collection via .where clauses and return a list of those documents? My purpose here is I want to be able to build a dynamic filter for a query depending on what fields are filled in. This is why I want to do it with a custom function or action.
This is just an example of what the AI generator gives me, but I am not sure how to return the correct data type using this logic.