[DOCS-1727] Wire Protocol returnFieldsSelector value Created: 20/Jul/13  Updated: 30/Oct/23  Resolved: 27/Jul/16

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Minor - P4
Reporter: Xudong Zheng Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 7 years, 29 weeks ago

 Description   

> db.collname.find({_id:ObjectId("51e9d3ace847a628a9000008")},

{"_id": 0}

)

> db.collname.find({_id:ObjectId("51e9d3ace847a628a9000008")},

{"_id": false}

)

These both seem to return the same result. While the wire documentation says "The returnFieldsSelector...integer value 1", boolean value true/false also seems to work. Is this officially supported? Can this potentially be mentioned in the documentation?

Thanks



 Comments   
Comment by Emily Hall [ 27/Jul/16 ]

Closed by Emily Hall for Housekeeping on 7/27/16.
Please create a new ticket if for prioritization.

Thank you!

Generated at Thu Feb 08 07:41:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.