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

$geoNear fails to re-parse when provided geometry type is invalid

    • Fully Compatible
    • ALL
    • 35

      $geoNear queries can specify a $geometry operand without having to specify a type. This is partially because $geoNear expects a geometry of type "Point" at all times. While we may add a consistency check on the type in the future, for now we simply want to allow this type of query to re-parse correctly. This means that we should handle cases where the "type" passed in is also invalid as is the case for this BF.

      In this case:

      "type": 'b.c'
      

            Assignee:
            santiago.roche@mongodb.com Santiago Roche
            Reporter:
            santiago.roche@mongodb.com Santiago Roche
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: