Allow certain compound wildcard indexes without a wildcardProjection

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      According to the docs, we exclude _id by default for wildcard indexes.

      We should allow indexes like

      db.foo.createIndex({_id: 1, "$**": 1})
      

      to be created. (Right now, this fails since we require a wildcardProjection and _id is not explicitly excluded.)

      This may also mean that an index like

      db.foo.createIndex({"a": 1, "_id": 1, "$**": 1}, {wildcardProjection: {"a": 0}}
      

      should be allowed too.

            Assignee:
            Unassigned
            Reporter:
            Militsa Sotirova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: