[SERVER-3757] findAndModify can't handle {fields: {_id: 0}} Created: 04/Sep/11 Updated: 07/Mar/14 Resolved: 04/Sep/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying, Write Ops |
| Affects Version/s: | 1.8.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | pablo platt | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
ubuntu 11.04 |
||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
when using findAndModify and trying to remove the id field with {fields: {_id, 0}} To reproduce: // without fields it works: , , // works with fields too , , , // find works when using {_id: 0} in fields: , {name:1, _id: 0}) // findAndModify fail when using {_id, 0} in fields: , , , |
| Comments |
| Comment by Scott Hernandez (Inactive) [ 04/Sep/11 ] |
|
Dup of |