How to map a distinct array of results from a column (field) to a list?
I've created a service to get a list of distinct values for a column in the database:
{database_url}/collections/Sizes/distinct/Brand
(using the POST method);
When I test the service I get the correct result:
[
"Gap",
"Gant",
"Celio",
"Gant Test"
]
I then create my service response, which just outputs an array ($) - the column name 'Brand' is not included in the results and hence is not created in the service response.
I'm then stuck when it comes to mapping the result to a drop down list. I can map the array to the mobileselectmenuitem but I don't have a field available (Brand) to map to the Label.
Please point me in the right direction. Thanks.