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

Expand supported query operators with {$exists: true} partial index filter

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.3
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Fully Compatible

      The following query operators all require that the field they operate on be present in the document, and are thus compatible with {$exists: true}:

      • $exists
      • $type
      • $mod
      • $regex
      • $geoIntersects
      • $geoWithin
      • $elemMatch
      • $size

      The following query operators allow using null to match documents where the field is omitted from the document, and are only compatible with {$exists: true} if the value is non-null:

      • $eq
      • $gt
      • $gte
      • $lt
      • $lte
      • $in

      The following query operators allow using non-null values to match documents where the field is omitted from the document, and are only compatible with {$exists: true} if the value is null:

      • $ne
      • $nin

            Assignee:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: