I have a collection of "Shops" which has a field of "City" (string) as well for their location. I want to showcase those cities on my customer facing app but there are obviously multiple shops in the same city so the listview in customer app shows multiple entries with same city name since I am doing query collection of the shops collection.
Now, I want show unique values of cities on the listview of customer app. On clicking one of the entries an app state will be updated in the customer app which is stored as the location of the customer.
How do I filter out only unique city names from the "Shops" collection?