Support $type with wildcard index

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.4
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Hide
      db.c.createIndex({"$**":1})
      db.c.find({x: {$type: "object"}}).explain()
      
      Show
      db.c.createIndex({ "$**" :1}) db.c.find({x: {$type: "object" }}).explain()
    • Query 2018-10-22
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      When running a $type query with a wildcard index, it currently will try to use the index leading to an incorrect result.

            Assignee:
            Yuta Arai
            Reporter:
            Yuta Arai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: