📅  最后修改于: 2022-03-11 14:57:37.345000             🧑  作者: Mango
Comments.aggregate([
{$match: {postId : postId}},
{$lookup:{
from: 'commentLikes',
localField: '_id',
foreignField: 'commentId',
as : 'likes'
}}
])
.exec()