Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-75557

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

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

      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@mongodb.com Erin Zhu
            Reporter:
            ted.tuckman@mongodb.com Ted Tuckman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: