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

Consider deprecating $geoNear alias in find query

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration

      We silently allow $geoNear as an alias for $near in the find language but this is not documented anywhere. $geoNear is only documented as an aggregation stage.

      We should consider deprecating the alias and adding a rarely-logged warning. See comments for full original Slack thread.

      Before doing so, we should spend some time understanding why this alias was originally allowed, and investigate if $geoNear is also allowed as an alias for the find language's $nearSphere (using $geoNear with spherical: true).

            Assignee:
            Unassigned Unassigned
            Reporter:
            memento@mongodb.com Memento Slack Bot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: