Details
Description
Invalid arguments are ignored silently. MongoDB should error out for invalid arguments, e.g. "maxDistance" instead of "$maxDistance".
{
|
"loc" : {
|
"$near" : {
|
"$geometry" : {
|
"coordinates" : [
|
-77.446044,
|
43.227321
|
],
|
"type" : "Point"
|
},
|
"maxDistance" : 0.0002525890376357666,
|
"count" : 1
|
}
|
}
|
}
|
Attachments
Issue Links
- is duplicated by
-
SERVER-19783 Query parser does not correctly handle geonear predicates with other predicates in the same field
-
- Closed
-
- related to
-
SERVER-17234 geoNear command should return error for invalid arguments
-
- Closed
-