-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Server
-
Labels:None
valueOf() needs documentation. Need examples of the difference between valueOf() and toString(), especially for ObjectId type. The behavior of toString() changed in 2.2. The old behavior was to convert the ObjectId into a bare string (thus losing its type information); the new behavior is to produce text that indicates that it is an ObjectId with a hex value.
- is related to
-
SERVER-6986 ObjectId#toString and ObjectId#valueOf
- Closed
- 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-586 Document "str" property of ObjectId() in JavaScript (shell and server)
- Closed
-
SERVER-2684 special types in shell (e.g. Timestamp) display in variety of ways, and can confuse users
- Closed