阅读背景:

如何在MongoDB的$match中使用聚合操作符(例如$year或$dayOfMonth)?

来源:互联网 

I have a collection full of documents with a created_date attribute. I'd like to send these documents through an aggregation pipeline to do some work on them. Ideally I would like to filter them using a $match before I do any other work on them so that I can take advantage of indexes however I can't figure out how to use the new $year/$month/$dayOfMonth operators in my $match expression. I have a collection full of documents with a cr




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: