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(schema): make bulkWrite updateOne() and updateMany() respect timestamps option when set by merging schemas #13445

Merged
merged 1 commit into from May 27, 2023

Conversation

vkarpov15
Copy link
Collaborator

Fix #13409

Summary

castBulkWrite() relies on schema.$timestamps, which is only set if you explicitly go through .set() rather than setting .options.timestamps.

Examples

@vkarpov15 vkarpov15 merged commit c0b40a2 into master May 27, 2023
34 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-13409 branch May 27, 2023 18:58
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.

bulkWrite doesn't respect extended schema timestamp option
2 participants