JKHeadley/rest-hapi

Add option to populate subdocs

Open

#104 aperta il 18 apr 2018

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (156 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (1181 star)
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