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

$in might cover "not exists" with a special value

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Querying
    • Labels:
      None

      Description

      Example Data:

      {field1: 'String1', field2: 'String2'},
      {field1: 'String3', field2: 'String4'},
      {field1: 'String5'}

      Example Query:

      db.collection.find({
        field2: {
          $in: ['String2', {$exists: false}]
        }
      })

      Example Resultset:

      {field1: 'String1', field2: 'String2'},
      {field1: 'String5'}

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: