[英]Is there a way to call 'distinct' through monk?
I want to execute the following 'query' on my node.js server: 我想在node.js服务器上执行以下'query':
MongoDB: MongoDB的:
db.example.distinct('field')
Expected result: [value1, value2, ..., etc] 预期结果:[value1,value2,...等]
I tried this Javascript, but it doesn't work: 我试过这个Javascript,但它不起作用:
db.get('example').distinct('field', function (err, array){...});
But I don't think monk has that method defined. 但我不认为和尚定义了这种方法。 Is there a way to do this? 有没有办法做到这一点?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.