JKHeadley/rest-hapi

Add option to populate subdocs

Aperta

#104 aperta il 18 apr 2018

 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (155 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (1181 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor