In my meal planning app, I've got an "array" of "recipe references". I need to pull only those recipes from the recipe
collection to then send it to a listview.
How to fetch a group of Firestore Documents using an Array of Document References?
Database & APIs
The options available to me to fetch the recipe records:
I could simply pass the reference of each item and use "Document from Reference" within each item of the listview. However, it's necessary to fetch the filtered items from the collection at once, so as to then be able to order the listview based on one of the attributes called display_order
before passing each recipe to the items within the listview; which means I need to find a way to use "Query Collection".
However, I am unable to use Query Collection because it wouldn't let me filter the collection based on the reference or the ID of the items. I only have access to the array of references for this filtering step, and am unsure how to proceed.
Yes
1 reply