-->

如何使用Meteor.js $分钟蒙戈查询?(How to use $min mongo query

2019-10-29 03:25发布

基本上,我试图创建一个过滤器,只显示有超过一个职位账户。

return tags.find([{owner: this.userId, count: { $min: 1}}]);

它结束了回来罢了。 我尝试使用.min()和其他的东西为好。 我认为它是一个标准的蒙戈查询,我想知道是否有一个具体的流星问题?

Answer 1:

该标准蒙戈查询,对用$gt

tags.find({owner: this.userId, count: {$gt: 1}});


文章来源: How to use $min mongo query in Meteor.js?