db.categoryGoods.aggregate([{$match:{categoryId:2841}}
,{$lookup:{from:"goods",localField:"goodsId",foreignField:"_id",as:"goods"}}
,{$project:{_id:0,goods:1}}
,{$unwind:"$goods"}
,{$match:{"goods.volume":{$lte:100}}}
,{$sort:{"goods.volume":-1,"goods._id":1}}
,{$skip:2}
,{$limit:5}
])
昨天整了一天,没整出来,有没有php mongodb大神,帮忙把上面的mongodb命令翻译成php的执行语法?
紫衣仙女