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

Deprecate alternate syntax for $maxDistance with $near

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Geo
    • Labels:
      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 hari.khalsa@10gen.com
            Reporter:
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: