Add optional parameters to nearSphere
and near
GeoFuntions
#2545
Labels
Milestone
nearSphere
and near
GeoFuntions
#2545
Feature Request
Currently,
mongodb-odm
supports only the required parameters ofnearSphere
andnear
GeoFuntions:GeoJson point
orlegacy coordinate point
.For example,
nearSphere
function (same fornear
):or
According to the latest documentation of
nearSphere
operator andnear
operator, in addition, to the required parameters, you can also use optional$maxDistance
and$minDistance
. They needed to limit the result set of operators, but currentlymongodb-odm
doesn't support them.Summary
I suggest the next:
Builder::nearSphere()
andBuilder::near()
methods:Exrp::nearSphere
andExpr::near
methods:It will allow us to use optional parameters and filter result set better.
The text was updated successfully, but these errors were encountered: