[DOCS-586] Document "str" property of ObjectId() in JavaScript (shell and server) Created: 07/Oct/12  Updated: 30/Oct/23  Resolved: 18/Oct/12

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

Type: Improvement Priority: Minor - P4
Reporter: Tad Marshall Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-5439 Add ObjectId.toHexString() Closed
is related to DOCS-584 Release notes for 2.2 should mention ... Closed
is related to SERVER-7055 ObjectId to String type conversion di... Closed
is related to DOCS-563 documentation for valueOf() and toStr... Closed
is related to SERVER-2684 special types in shell (e.g. Timestam... Closed
is related to SERVER-6986 ObjectId#toString and ObjectId#valueOf Closed
Participants:
Days since reply: 11 years, 17 weeks, 6 days ago

 Description   

The JavaScript object "ObjectId" has a string property named "str" that is used internally to hold the text of the hex string version of the object ID. Due to a breaking change in 2.2 (SERVER-2684), this property becomes important to users, because it is a way to achieve compatibility between versions 2.0 and 2.2.

We should document its existance and usage so that users can use it more easily and with more confidence.



 Comments   
Comment by auto [ 18/Oct/12 ]

Author:

{u'date': u'2012-10-18T14:43:47-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}

Message: merge: DOCS-583 and DOCS-586
Branch: master
https://github.com/mongodb/docs/commit/0a2437dc28977a703d9c04eeeb0444a9b5fa065d

Comment by auto [ 18/Oct/12 ]

Author:

{u'date': u'2012-10-17T15:30:58-07:00', u'email': u'kay.kim@10gen.com', u'name': u'kay'}

Message: DOCS-563 and DOCS-586 minor cleanup of ObjectId
Branch: master
https://github.com/mongodb/docs/commit/77bdcc09d704f792267d558c9a6350a9a32be175

Comment by auto [ 18/Oct/12 ]

Author:

{u'date': u'2012-10-17T15:26:49-07:00', u'email': u'kay.kim@10gen.com', u'name': u'kay'}

Message: DOCS-563 and DOCS-586 edits to ObjectId doc
Branch: master
https://github.com/mongodb/docs/commit/be7abf071b82d9b18416cd60306edb08becc4896

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