I have a collection of mobile phone handsets
I’d like to pull DISTINCT values only
I’ve tried
{
“distinct” : [“make”,“model”],
“filter”:
{“make”: “Samsung”},
“fields”: {“make”:true, “model”:true, “_id”: false}
}
but get duplicates
{
"make": "Samsung",
"model": "Galaxy S6 - G920F"
},
{
"make": "Samsung",
"model": "Galaxy S6 - G920F"
},
{
"make": "Samsung",
"model": "Galaxy S6 - G920F"
},
(I’m using the REST API and doing a HTTP POST to cockpit-master/api/collections/get/mtrpricefeeed/?token=…