Allow minDistance and maxDistance parameters in $geoNear pipeline stage to take expressions

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Fully Compatible
    • QI 2023-09-18, QI 2023-10-02
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The minDistance and maxDistance parameters are only allowed to be a constant numbers right now. We can loosen the restriction to allow any expression as long as they evaluate to a number

      https://www.mongodb.com/docs/manual/reference/operator/aggregation/geoNear/

              Assignee:
              Erin Zhu
              Reporter:
              Ted Tuckman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: