Luca
Luca
Top Bug Hunter
ย ยทย Founder | CTO

Query collection and sub-collection

Resolved

Hello,

I have a collection with several medications, e.g. Ibuprofen, Aspirin, Thomapyrin etc.

Each medicine has a subcollection with two documents "quantity" (e.g. 2) and "unit" (e.g. mg).

My goal is that the user types "Ibu" in the search field, for example, and then all medications beginning with Ibu are searched and listed. That's pretty simple in itself.

However, the subcollection should also be iterated so that the user receives a list under the search field in which the medication is displayed as often as there are entries in the subcollection, e.g:

- Ibuprofen 2mg

- Ibuprofen 5mg

- Ibuprofen 10mg

Is this possible with FlutterFlow, or do you have to develop an API for it?

Thanks in advance

2
8 replies