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: allow non-discriminated documents be retrieved #40

Merged

Conversation

DesignByOnyx
Copy link

Summary

This allows models with discriminators to create and retrieve non-discriminated documents. This closes #39.

Examples

Please see code example in the linked issue or the new test written for this PR.

@vkarpov15 vkarpov15 merged commit d27185f into mongoosejs:master Aug 4, 2024
3 checks passed
@vkarpov15 vkarpov15 added this to the 2.1.1 milestone Aug 4, 2024
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.

Error when creating a non-discriminated document on a discriminated model
2 participants