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

貢獻者指南