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

Handle returnKey option for $** indexes

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

      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@mongodb.com Yuta Arai
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: