Model.distinct("Age").done(function(err, ward) {
if(err)
return next(err);
if(!ward)
return next();
res.json(ward);
});
After executing this code, it throws the following error:
TypeError: Object [object Object] has no method 'distinct'
But different jobs in robomongo. How to fix the error?
source
share