如何在Meteor.js中使用$ min mongo查询?
问题描述:
我基本上是在尝试创建一个过滤器,该过滤器仅显示具有多个帖子的帐户.
I'm basically trying to create a filter that only displays accounts that have more than one post.
return tags.find([{owner: this.userId, count: { $min: 1}}]);
它最终不返回任何内容.我也尝试使用.min()和其他东西.我相信它是标准的Mongo查询,并且想知道是否存在与流星有关的问题吗?
It ends up returning nothing. I tried using .min() and other stuff as well. I believe its a standard Mongo query and am wondering if there is a Meteor-specific issue?