JKHeadley/rest-hapi

Add option to populate subdocs

Open

#104 创建于 2018年4月18日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (156 fork)batch import
enhancementhelp wanted

仓库指标

Star
 (1,181 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Via this comment:

It would be great if there were some way to specify an embed of 'subdoc.pets' that made populateEmbeddedDocs call .populate({ path: 'subdoc.pets' }) instead of .populate({ path: 'subdoc', populate: { path: 'pets' } }).

Need to develop syntax to specify between the two, ex: subdoc.pets vs subdoc:pets

贡献者指南