摘要: 我有两个集合,文章和评论,评论中的文章是文章中_id的外键. db.collection('article').aggregate( [ { $lookup: { from: "comments", localField: "_id", foreignField: "articleId", as: 阅读全文
posted @ 2021-06-07 11:22 苍青浪 阅读(1833) 评论(0) 推荐(0)