Closed mohamed-ouakil closed 8 years ago
Hi All,
i read the doc and cannot find how to achieve this
i have this on the collection : { "type" : "A" "value" : 111 } { "type" : "B" "value" : 111 } { "type" : "A" "value" : 222 }
i can do that on mongo shell : db.collection_test.distinct("type")
it return me : [ "A", "B"]
how to do the same on restheart ? i tried many /get/collection_test?filter parameter but it doesn't works
thanks for your reply
regards
Hi
You have to create an aggregation. See how to do it in documentation.
Hi ,
thanks a lot :)
Hi All,
i read the doc and cannot find how to achieve this
i have this on the collection :
{ "type" : "A" "value" : 111 } { "type" : "B" "value" : 111 } { "type" : "A" "value" : 222 }
i can do that on mongo shell : db.collection_test.distinct("type")
it return me : [ "A", "B"]
how to do the same on restheart ? i tried many /get/collection_test?filter parameter but it doesn't works
thanks for your reply
regards