Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
3
-
Not Needed
-
Iteration Papaya
Description
In Compass 1.22.1, Date and ISODate objects evaluate to {} in the embedded shell:
> foo = new Date("2020-10-07")
|
< {}
|
|
|
> foo.toJSON()
|
< '2020-10-07T00:00:00.000Z'
|
|
|
> typeof foo
|
< 'object'
|
The expected result would be an ISO date similar to the toJSON() output. Example from standalone mongosh:
> foo = new Date("2020-10-07")
|
2020-10-07T00:00:00.000Z
|