-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Mongoose 6: Deep-populate with string causing errors (undocumented breaking change?) #11160
Comments
I'm reading the docs and I don't see a populate option in the populate function. What does the |
I believe the changes are part of this note https://mongoosejs.com/docs/migrating_to_6.html#removed-execpopulate The note itself is poorly written. As you say there were more changes made to the way the |
This is possible! If helpful, I can update the docs and draft a PR for it. |
fix(document): allow populating deeply nested models as strings
I'm not sure if this may be documented as a breaking change somewhere, but I couldn't find it: When using a string-based populate, it fails with Mongoose 6 while it works with 5.x:
The same works with brackets:
It's fine to migrate, but devs may not know it's an issue until they run a related query.
The text was updated successfully, but these errors were encountered: