微信扫一扫
管道查询输出结果是数组,只想获取数组中某个特定索引的值,和java一样
$arrayElemAt
聚合查询
"studyTime2": {$arrayElemAt:["$str.name",0]}
相关推荐