-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
transformInteriorValue doesn't handle conversion properly #9567
Comments
Thanks for opening this issue!
|
Is this a bug, or just a code refactoring without any effects on performance or behavior? |
I didn't test it, but I think the RegExp and Bytes are all broken since #8446, because Also this logic is handled properly after #9566, which is a definitely a behavior change (although it's from the original refactoring, but it never triggered since that): // Handle update operators
if (typeof restValue === 'object' && '__op' in restValue) {
return transformUpdateOperator(restValue, true);
} |
Ok, we keep this classified as a bug. Could you please make sure the PR contains a test that demonstrates the issue? |
New Issue Checklist
Issue Description
Since transformInteriorValue 4d43614, the code never trigger the logics after
value !== CannotTransform
. This bug was noticed and fixed in #8209 in a wrong way, and later #8446 introduced a (partially) corrected but duplicated fix.Steps to reproduce
Actual Outcome
Expected Outcome
Environment
Server
7.4.0
Ubuntu
AWS
Database
MongoDB
5.0.18
AWS
Client
JavaScript
5.3.0
Logs
The text was updated successfully, but these errors were encountered: