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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(populate): handle ref() functions that return a model instance #14343

Merged
merged 1 commit into from Feb 12, 2024

Conversation

vkarpov15
Copy link
Collaborator

Fix #14249

Summary

#14249 turns out to be an easy fix: it looks like we don't correctly handle ref() functions that return a model instance. available[modelName] then indexes based on the source code of the model constructor 馃槥 . This PR fixes that.

Examples

@vkarpov15 vkarpov15 added this to the 8.1.3 milestone Feb 9, 2024
@vkarpov15 vkarpov15 merged commit 37dc2f0 into master Feb 12, 2024
34 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-14249 branch February 12, 2024 17:26
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

Successfully merging this pull request may close these issues.

Dynamic Object ID reference for a subdocument inside an array
2 participants