-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Embedded Shell
-
None
-
Environment:MongoDB server version: 4.4.12
MongoDB shell version v4.2.11
MongoDB Compass Version 1.30.1 (1.30.1)
-
Not Needed
In shell:
new ObjectId().valueOf();
xxxxxxxxxxxxxxxxxxxxxxxx
new ObjectId().toString();
ObjectId("xxxxxxxxxxxxxxxxxxxxxxxx")
In compass is totally reverse:
new ObjectId().valueOf();
ObjectId("xxxxxxxxxxxxxxxxxxxxxxxx")
new ObjectId().toString();
xxxxxxxxxxxxxxxxxxxxxxxx