JKHeadley/rest-hapi

Add option to populate subdocs

开放

#104 创建于 2018年4月18日

 (0 条评论) (0 个反应) (0 位负责人)JavaScript (155 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (1,181 个星标)
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

贡献者指南