Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you select parent level fields using deepPopulate? #50

Open
bostondevin opened this issue Mar 21, 2017 · 2 comments
Open

How do you select parent level fields using deepPopulate? #50

bostondevin opened this issue Mar 21, 2017 · 2 comments

Comments

@bostondevin
Copy link

How do you specify select fields for the parent document when you are using deepPopulate?

I can specify the select for child objects this way just fine:

.deepPopulate('createdBy', {populate: {createdBy: {select: 'firstName lastName _id'}});

But for the parent object, I want to do the same? What would the syntax be for that?

@charles-passille-smartnets

@bostondevin I don't know how to do what you're asking, but it seems that this project is not being maintained anymore, i would suggest looking for help on stack overflow or something like that.

@mariohmol
Copy link

Hi, @charles-passille-smartnets have you found a good replace for this repo? thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants