[SERVER-23144] dot notation of projections doesn't work on embedded "_id" field Created: 15/Mar/16  Updated: 15/Mar/16  Resolved: 15/Mar/16

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 3.0.2
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Jia Hongchao Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-7502 Query's projection does not obey part... Closed
Operating System: ALL
Steps To Reproduce:

db.test.save({ "_id" : { "d" : "x", "f" : "z" }})
db.test.find({},{"_id.d":1})  // should return {_id:{d:"x"}} instead of { "_id" : { "d" : "x", "f" : "z" }}

Participants:

 Description   

If "_id" is an embedded field, then dot notation of projections doesn't work on that field.
I think "_id" field should be able to projection to avoid unnecessary data transform



 Comments   
Comment by Scott Hernandez (Inactive) [ 15/Mar/16 ]

You can follow the linked issue to keep up to date as it progresses: SERVER-7502

Generated at Thu Feb 08 04:02:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.