-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Fully Compatible
-
ALL
-
35
$geoNear queries can specify a $geometry operand without having to specify a type. This is partially because $geoNear expects a geometry of type "Point" at all times. While we may add a consistency check on the type in the future, for now we simply want to allow this type of query to re-parse correctly. This means that we should handle cases where the "type" passed in is also invalid as is the case for this BF.
In this case:
"type": 'b.c'
- is related to
-
SERVER-84598 $geoNear allows missing or invalid GeoJSON "type" field
- Closed