-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
deep population (>4 levels) #3973
Milestone
Comments
Womp. Quite possibly the case, deep populate has a lot of rough edges, as you've noticed. I'll try reproing in a bit. |
Another case of not getting the model correctly. As a workaround: .populate({
path: 'level2',
populate: {
path: 'level3',
populate: {
path: 'level4', model: 'level_4' // <-- explicitly tell mongoose to use this model
}
}
}) |
vkarpov15
added a commit
that referenced
this issue
Mar 18, 2016
great news! thanks |
Please do, thanks for finding all the bugs :) |
vkarpov15
added a commit
that referenced
this issue
Sep 5, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
isn't population work recursively?
i expected to populate 4 levels deep but found out its impossible
the 4th level isn't getting populated
this should not be a big problem to put code in a function and call it recursively for each next level
The text was updated successfully, but these errors were encountered: