Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-644

Add $near support in mongodb-language-model

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.22.0
    • Affects Version/s: None
    • Component/s: Grammar, Query Bar
    • None
    • Environment:
      Compass 1.5.1

      Compass does support $geoWithin queries but when trying (manually) to enter a $near query (see below) a red info point appears linking to the MongoDB Extended JSON docs page and the 'apply' button remains unavailable.

      Questions:

      1. Which operators are support and which aren't? Can we get this info added to the online docs perhaps?
      2. What are the timeframes for supporting those operators which are currently not supported?

      Sample $near query:

      {"metadata.location": { "$near" : { "$geometry": { type: "Point",  coordinates: [ -98.60496194154656, 20.515878780777225 ] }, "$maxDistance": 100000 }  }}
      

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            ronan.bohan@mongodb.com Ronan Bohan
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: