-
Type: Improvement
-
Resolution: Done
-
Priority: Trivial - P5
-
Affects Version/s: None
-
Component/s: JavaScript
-
Labels:None
-
Major Change
The way a timestamp prints in the shell is misleading and makes it look like an embedded doc which is not true.
If currently prints as: {ts:{t:#, i:#}}
But you cannot do this: find(
{"ts.t": #}) or this: find({ts: {t:#, i:#}}) ; you must do this find(
{ts: new Timestamp(#, #)})
- is related to
-
SERVER-7055 ObjectId to String type conversion different in 2.2 from 2.0
- Closed
-
DOCS-563 documentation for valueOf() and toString()
- Closed
-
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
-
JAVA-280 BSONTimestamp and some other fields are not properly serialized to JSON and cannot be parsed back
- Closed
-
DOCS-586 Document "str" property of ObjectId() in JavaScript (shell and server)
- Closed