Home › Forums › KX Solutions › Virtual select distinct list from datasource › Re: Virtual select distinct list from datasource
-
I have added an example below of how to get the distinct set of results (using _.uniqBy) . For more information on this function or any other useful functions please have a look at : https://lodash.com/docs/4.17.15
function (source, callback) { var result = { "columns": ["exchangeName"], "meta": { "exchangeName": 11}, "rows": [] } result.rows= _.uniqBy(source.rows,"exchangeName"); callback(result); }