[DOCS-7691] Comment on: "manual/core/document.txt" Created: 19/Apr/16  Updated: 30/Oct/23

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

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: collector-298ba4e7, docs-triage
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MongoDB 3.2 on Linux, C-Driver 1.3.0 on Linux/OSX

Location: https://docs.mongodb.org/manual/core/document/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/601.5.17 (KHTML, like Gecko) Version/9.1 Safari/601.5.17
Referrer: https://www.google.com/
Screen Resolution: 1920 x 1080
repo: docs
source: core/document


Participants:
Days since reply: 1 year, 14 weeks, 2 days ago
Epic Link: DOCSP-1769

 Description   

The manual says:
"To specify or access an element of an array by the zero-based index position, concatenate the array name with the dot (.) and zero-based index position, and enclose in quotes"

However, with the C-Driver, at least, one can create arrays whose element keys are not "0", "1", "2",... and this will not work unless you specified those particular values for the keys when you "bson_append" elements to the array in a document you are preparing to insert. If this is by design, then the documentation should be fixed, and should include what rules are used by the server to generate element keys when existing arrays are modified. Otherwise, the server should be fixed to ignore the element keys included in submitted bson arrays, and just normalize to "0","1", "2",... according to position.



 Comments   
Comment by Education Bot [ 31/Oct/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

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