2014-09-26 62 views
0

我想其中有1从外地流星JS

我写这样在服务器端最小值的记录,它显示

the [object][object} has no such method min 

回报Videos.find返回最小值({})。min({reportlen:1});

任何替代品???

回答

0

使用查询选择$gte

// Matches documents where reportlen is greater or equal to 1 
Videos.find({reportlen:{$gte:1}})