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

fix(populate): correctly get schematypes when deep populating under a map #15302

Merged
merged 2 commits into from
Mar 12, 2025

Conversation

vkarpov15
Copy link
Collaborator

Fix #9359

Summary

doc.$__.populated[fullPath] can be nullish in this context if fullPath includes $*, that is, if deep populating a path underneath a map. topLevelDoc.$populated(fullPath, true) is equivalent (the true makes $populated() return the full populated state rather than just the populated values) accounts for this case.

Examples

@vkarpov15 vkarpov15 added this to the 8.12.2 milestone Mar 6, 2025
@vkarpov15 vkarpov15 merged commit 2d8c168 into master Mar 12, 2025
75 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-9359 branch March 12, 2025 09:31
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.

[Question] Populate a Map
2 participants