Hi everyone,
Am struggling with what I expected would be something fairly simple to do. In my database I have two things named Collection and Section. Collection has 8 fields- relevant ones for this being name, a cover image and a list of sections. Sections also have multiple fields, but relevant ones are name and the collection they belong to.
I wish to use the API to do the following things:
- Return the names, ids and cover images of all the collections of a user. I wish to exclude the remaining fields because those are not needed. These will be shown in a dropdown at the place the API is called from (a separate app I am building using code)
- For each collection, return the ids and names of all the sections that belong to it. These too will be shown in a dropdown.
If I use the Bubble data API to get the collections or sections, then I also end up getting fields that I do not need and that seems to be a waste of network bandwidth for data which is useless and potentially large (I have a list of items in each section which can run into 100s). Is it possible to configure the API in a manner which returns only the required fields?
I have scoured the forum for answers on this, but canāt seem to find anything. Any help would be much appreciated. Tagging @keith @vini_brito @Jici @shpak.serhiy @kevin4 as I have seen you folks the most active on all the API threads I have read. Look forward to hearing from you guys and the rest of the community.
Akhil







