JKHeadley/rest-hapi

Add option to populate subdocs

Open

#104 建立於 2018年4月18日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)JavaScript (1,181 star) (156 fork)batch import
enhancementhelp wanted

描述

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

貢獻者指南

Add option to populate subdocs · JKHeadley/rest-hapi#104 | Good First Issue