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

the $returnKey operator behavior is inconsistent when used with { _id: something }

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.2.0
    • Component/s: Querying
    • Labels:
      None
    • Query
    • Fully Compatible
    • OS X
    • Hide

      See the attached returnKey.js file

      Show
      See the attached returnKey.js file

      When running queries with the $returnKey set to true, the query returns the whole document instead of just the index key when the query condition is

      { _id: <some value> }

      .

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: