-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
Fully Compatible
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Implement narrowType for ExistsMatchExpression. It uses ElementPath with LeafArrayBehavior::kTraverse and NonLeafArrayBehavior::kTraverse.
{x: {$exists: true}} with x = any -> x is any except missing
{x: {$exists: false}} with x = any -> x is missing
{x: {$exists: true}} with x = number|missing -> x is number
$jsonSchema required decomposes into $exists.