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(types): add HydratedDocumentFromSchema to make it easier to pull inferred hydrated doc type #12464

Merged
merged 1 commit into from Sep 26, 2022

Conversation

vkarpov15
Copy link
Collaborator

Fix #12319

Summary

#12319 correctly pointed out that it is clunky to pull the hydrated document type from an inferred schema. This PR adds a helper HydratedDocumentFromSchema that helps make that cleaner.

Examples

@hasezoey hasezoey added the typescript Types or Types-test related issue / Pull Request label Sep 22, 2022
@vkarpov15 vkarpov15 merged commit 88ba7a1 into master Sep 26, 2022
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.

Get Document type with QueryHelpers and InstanceMethods
2 participants