Deprecate alternate syntax for $maxDistance with $near

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Geo
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Deprecate with an error message that the alternate, undocumented $maxDistance syntax for $near.

      Currently, the following syntax:

      db.t.find( { loc : { $near : [56, 8, 10] } } )
      

      is a synonym for this:

      db.t.find( { loc : { $near : [56, 8], $maxDistance:10 } } )
      

            Assignee:
            hari.khalsa@10gen.com
            Reporter:
            Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: