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

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Mustafa Dokumac?
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: