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

Deprecate alternate syntax for $maxDistance with $near

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Won't Fix
    • None
    • None
    • Geo
    • None

    Description

      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 } } )

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: