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): handle bitwise operators on Int32 #15176

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vkarpov15
Copy link
Collaborator

Fix #15170

Summary

Added bitwise operator support to int32. Also fixed a couple of invalid applySetters() calls: this.applySetters(null, val, context); is incorrect args, first param to applySetters is value and 2nd is context. This makes it so that any operators that we don't have an explicit definition for are casted to the given schematype. For example, if x is a boolean, then { x: { $someConditional: 'true' } } will get casted to $someConditional: true.

Examples

@vkarpov15 vkarpov15 added this to the 8.9.5 milestone Jan 11, 2025
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.

Bitwise query on Int32 field throws server error
2 participants