[英]Is there a way to call 'distinct' through monk?
我想在node.js服務器上執行以下'query':
MongoDB的:
db.example.distinct('field')
預期結果:[value1,value2,...等]
我試過這個Javascript,但它不起作用:
db.get('example').distinct('field', function (err, array){...});
但我不認為和尚定義了這種方法。 有沒有辦法做到這一點?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.