Details
-
Improvement
-
Resolution: Done
-
Minor - P4
-
None
-
None
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.
Attachments
Issue Links
- is related to
-
DOCS-584 Release notes for 2.2 should mention breaking change: ObjectId().valueOf() and ObjectId().toString() have reversed meanings
-
- Closed
-
-
SERVER-7055 ObjectId to String type conversion different in 2.2 from 2.0
-
- Closed
-
-
DOCS-563 documentation for valueOf() and toString()
-
- Closed
-
-
SERVER-2684 special types in shell (e.g. Timestamp) display in variety of ways, and can confuse users
-
- Closed
-
-
SERVER-6986 ObjectId#toString and ObjectId#valueOf
-
- Closed
-
- related to
-
SERVER-5439 Add ObjectId.toHexString()
-
- Closed
-