如何从不应该包含数组ID的集合中获取随机记录。
follow数组中的ID应该被排除
let id_arr=[
"5b8e79f113bd9a0d8a717635","5b8e8b0447bfb114b4858e9d","5b8e9109ee2e6c07765ba023"
];
如何为聚集添加条件?就像_id:{$ nin:id_arr}
let questionQry = await Questions.aggregate([{$match:{_id:{$nin:tearr}}},{$sample: { size:12 }}]);