TLDR: "SELECT DISTINCT category FROM items" efficiently in Drift
There is Item (or ItemsCompanion) data class that among others has 'String category' property. I'd like to get a list of distinct categories efficiently.
I'm failing to found a way
- to get in result property of object without object itself
- to filter out only unique values
Any help would be appreciated.
I can get a list of Items, iterate through and put it's categories in List, transform a List into a Set but it seems way too inefficient.