DocumentDb don't support the DISTINCT
statement. I have documents in DocumentDB with the following structure (thousands of documents):
{
"type" : "type1",
"data" : {
...
}
},{
"type" : "type2",
"data" : {
...
}
},{
"type" : "type2",
"data" : {
...
}
},{
"type" : "type2",
"data" : {
...
}
}
How can I query the collection and get the following result:
{
"type" : "type1"
},{
"type" : "type2"
}
Azure DocumentDB currently does not support DISTINCT
.
Please voice your opinion and vote for this feature on DocumentDB's feedback forum.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With