是否可以在$ match中进行OR?
我的意思是这样的:
db.articles.aggregate( { $or: [ $match : { author : "dave" }, $match : { author : "john" }] } );
mongodb aggregation-framework
aggregation-framework ×1
mongodb ×1