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(query): set ObjectParameterError if calling findOneAndX() with filter as non-object #13338

Merged
merged 2 commits into from Apr 27, 2023

Conversation

vkarpov15
Copy link
Collaborator

Fix #13264

Summary

As #13264 pointed out, most of our query methods, like find(), deleteOne(), etc. error out if the filter isn't an object. But findOneAndUpdate(), findOneAndReplace(), and findOneAndDelete() do not. This PR fixes that issue.

Examples

@vkarpov15 vkarpov15 merged commit 2bb0fc2 into 6.x Apr 27, 2023
34 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-13264 branch April 27, 2023 19:50
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.

None yet

2 participants