[SERVER-7851] the $returnKey operator behavior is inconsistent when used with { _id: something } Created: 05/Dec/12 Updated: 06/Dec/22 Resolved: 23/Nov/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.2.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Kay Kim (Inactive) | Assignee: | Backlog - Query Team (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Assigned Teams: |
Query
|
| Backwards Compatibility: | Fully Compatible |
| Operating System: | OS X |
| Steps To Reproduce: | See the attached returnKey.js file |
| Participants: |
| Description |
|
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> }. |
| Comments |
| Comment by Asya Kamsky [ 23/Nov/17 ] |
|
This behavior does not reproduce in the current version. |