Is it possible to query DISTINCT values using Ballerina Query Expressions?
string[]|error connectorProducts = from record {string product;} {product} in products
select product;
connectorProducts should only have DISTINCT values at the end.
Thanks.
This can be achieved by incorporating a
group byclause.Also see
Note that there's an open spec issue to look into the possibility of adding an
array:uniquefunction as a straightforward alternative for when we just want to filter out unique members from an array.