Nested populate doesn't work when the main property has a default: null
definition
#8518
Labels
help
This issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessary
Do you want to request a feature or report a bug?
bug
What is the current behavior?
When trying to do a nested populate from the document's populate() method, nothing happens
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Even with a
default: null
for a property that is an object, the nested populate should still work.What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node 10.x
Mongoose
5.8.7 (.8.8 doesn't seem to be in the NPM repo)5.8.9MongoDB 4.0.9
The text was updated successfully, but these errors were encountered: