【发布时间】:2014-06-13 08:30:18
【问题描述】:
Model.distinct("Age").done(function(err, ward) {
if(err)
return next(err);
if(!ward)
return next();
res.json(ward);
});
执行此代码后,出现以下错误:
TypeError: Object [object Object] has no method 'distinct'
但在 robomongo 中有不同的作品。我该如何纠正错误?
【问题讨论】:
标签: node.js mongodb sails.js sails-mongo