Skip to content

Conversation

@JavaScriptBach
Copy link
Contributor

Summary

Export an InferPojoType type alias that replicates the Mongoose 8 InferRawDocType behavior. This alias is useful for performing Mongoose's type inference on user-provided fields only.

Added tests.

Fixes #15814

@JavaScriptBach JavaScriptBach marked this pull request as ready for review November 29, 2025 01:31
@vkarpov15
Copy link
Collaborator

@JavaScriptBach I renamed to InferRawDocTypeWithout_id to avoid adding another concept of "pojo type", but otherwise LGTM

@vkarpov15 vkarpov15 added this to the 9.0.2 milestone Dec 15, 2025
@vkarpov15 vkarpov15 merged commit 06b83cb into Automattic:master Dec 15, 2025
3 checks passed
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.

Export pre-Mongoose v9 behavior of InferRawDocType

2 participants