Details
Description
See the linked script in HELP-20040. Essentially, when performing an aggregation using a $geoNear stage of the form:
{
|
$geoNear: {
|
near: { type: "Point", coordinates: <coordinate> },
|
maxDistance: 0,
|
spherical: true
|
}
|
where 'coordinate' is a lat-long coordinate that exists in some document in the collection being aggregated, the $geoNear stage will not always match the given coordinate.