0
aggregate([
    {
        $match: {
            _id:mongoose.Types.ObjectId(id),
        }
    },
    {
        $lookup: {
            from: "Comment",
            localField: "_id",
            foreignField: "artical_id",
            as: "comment_arr"
        }
    }])

请问lookup之后的条件筛选应该如何做呢,比如我这里需要筛选出”comment_arr”中status为1的数据,谢谢大佬们

Answered question