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

types(model+query): pass TInstanceMethods to QueryWithHelpers so populated docs have methods #14581

Merged
merged 1 commit into from
May 9, 2024

Conversation

vkarpov15
Copy link
Collaborator

Fix #14574
Re: #14441

Summary

Fix for #14441 made it so that, if you chain populate() onto a query, the resulting doc doesn't have instance methods. To fix, we need to make QueryWithHelpers and Query aware of TInstanceMethods; this PR makes sure we pass along TInstanceMethods to queries everywhere

Examples

@vkarpov15 vkarpov15 added this to the 8.3.5 milestone May 9, 2024
@hasezoey hasezoey added the typescript Types or Types-test related issue / Pull Request label May 9, 2024
@vkarpov15 vkarpov15 merged commit 11c754c into master May 9, 2024
5 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-14574 branch May 9, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript Types or Types-test related issue / Pull Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document methods are not available when it is populated
2 participants