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

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • 35
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      $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
              Reporter:
              Santiago Roche
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: