-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Fully Compatible
-
Query 2020-01-27, Query 2020-02-10, Query 2020-02-24
-
0
Support $where by translating it to $function. Then remove the existing implementation of $where.
$function is an aggregation expression while $where is a match expression, so we can use $expr to embed the agg expression where a match expression is expected.
This new implementation of $where will not support passing a CodeWithScope as the function.
Make sure $where still works on FCV 4.2, even though $function may be restricted to FCV 4.4.
- related to
-
SERVER-46242 $where should return an informative error message when passed a CodeWithScope argument
- Closed
-
SERVER-53370 Complete TODO listed in SERVER-45454
- Backlog
-
SERVER-65079 Investigate if the MozJS upgrade made creating JS scope more efficient.
- Backlog
-
SERVER-45453 Change name and usage of $_internalJs to $function
- Closed
-
SERVER-52993 Complete TODO listed in SERVER-45454
- Closed