Casting for top-level $expr
#10663
Labels
discussion
If you have any thoughts or comments on this issue, please share them!
enhancement
This issue is a user-facing general improvement that doesn't fix a bug or add a new feature
Milestone
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
Re: #10622, right now we don't do any casting on
$expr
. AndsanitizeFilter
doesn't do anything with$expr
either.If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Not sure yet, but something we need to figure out. Questions:
Should
sanitizeFilter()
remove$expr
?How much casting can we reasonably do on
$expr
? In the above example, can we figure out that2021
needs to be a number?What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
The text was updated successfully, but these errors were encountered: