-
Type: Bug
-
Resolution: Unresolved
-
Priority: Critical - P2
-
None
-
Affects Version/s: 1.36.2
-
Component/s: Embedded Shell
-
Environment:OS: macOS
node.js / npm versions: I don't know which are being used by compass
Additional info:
-
3
Problem Statement/Rationale
When querying a collection with a document with a Int64, from the mongosh client in compass with the following example query:
db.xp.findOne({"not_the_affected_field": "not the affected text"})
I get my document returned. However the last two digits of the numbers in that document (mostly long ids, 60 bit) are returned as zeros. Comparing this to the result from a bash mongosh client, the numbers are returned and shown as Long("1234512345"),
Please be sure to attach relevant logs with any sensitive data redacted.{}
Steps to Reproduce
Create collection
Add document with a field with a long number (more than 32 bit) in it
Query for that document by another field
Last two digits are shown as 0s
example from above: 1234512300
Expected Results
What do you expect to happen?
Either: Long("1234512345") or 1234513245
Actual Results
What do you observe is happening?
1234512300
Additional Notes
Any additional information that may be useful to include.
Server is docker server image latest as of yesterday.
- is caused by
-
NODE-3391 EJSON.stringify does not stringify Long values properly
- Backlog