标签: mongodb aggregation-framework
$project阶段似乎不正确
$project
我尝试在管道中使用$match和$project,但是在$project阶段给出的结果似乎不正确
$match
var pipeline=[ {$match: { genres:{ $nin:['Crime','Horror'] } }}, {$project: { title:1, rated:1 }} ]