[SERVER-6259] Can't $project into _id Created: 30/Jun/12  Updated: 15/Aug/12  Resolved: 30/Jun/12

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-6181 attempt to $project a computed _id fi... Closed
Operating System: ALL
Participants:

 Description   

> db.foo.drop()
true
> db.foo.insert({_id:'ID', other: 'OTHER'})
> db.foo.aggregate({$project:{_id:'$other'}})
{ "result" : [ { "_id" : "ID", "_id" : "ID" } ], "ok" : 1 }

Expected result: {_id: 'OTHER'}



 Comments   
Comment by Aaron Staple [ 30/Jun/12 ]

I think this is SERVER-6181.

Generated at Thu Feb 08 03:11:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.