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

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

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None

      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'}
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            vapurfilozofu Mustafa Dokumac?
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: