β

Answer by zangw for How to populate subdocument wi

User zangw - Stack Overflow 37 阅读
for

Please try this one, with comments.id as below

Posts
    .findOne({ id: id })
    .populate('creator')
    .populate('comments.id')
    .exec(function (err, post) {
    });
for
作者:User zangw - Stack Overflow
most recent 30 from stackoverflow.com
原文地址:Answer by zangw for How to populate subdocument wi, 感谢原作者分享。

发表评论