开发者

Select distinct on 2 keys in mongodb?

开发者 https://www.devze.com 2023-03-08 15:09 出处:网络
Is is possible to select Distinct on 2 or more keys in mongoDB? All the examples I\'ve found only show 1 but I\'d actually want开发者_开发百科 to do a distinct on 2.

Is is possible to select Distinct on 2 or more keys in mongoDB? All the examples I've found only show 1 but I'd actually want开发者_开发百科 to do a distinct on 2.


All the examples I've found only show 1

For exactly this limitation....what you want or get are two completely different things. If you need this functionality: implement a merger inside your application code.

0

精彩评论

暂无评论...
验证码 换一张
取 消