Handle returnKey option for $** indexes

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.3
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • Query 2018-09-24, Query 2018-10-08
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      At the moment, returnKey with an all paths index causes the query to fail uncleanly. This can be reproduced as follows:

      db.c.drop();
      db.c.createIndex({"$**": 1});
      db.c.insert({a: 1});
      db.c.find({a: 1}).hint({"$**": 1}).returnKey().itcount();
      

              Assignee:
              Yuta Arai
              Reporter:
              David Storch
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: