-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Query
In document_source_match.cpp, "uassertNoDisallowedClauses" is used to validate the query passed into a $match stage. It confirms that $where, $near, and $nearSphere are not used inside the object, but does not check for $geoNear. It should either error in all cases, or allow geo predicates inside a $match.