-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Environment:OS:
node.js / npm versions:
Additional info:
-
Developer Tools
-
Not Needed
Problem Statement/Rationale
A corresponding GitHub Issue: https://github.com/mongodb-js/compass/issues/3129
Steps to Reproduce
- Filter by `{ userid: NumberLong('894303306233552937') }`
- Observe that in the query history, this is shown as `{ userid: 894303306233552900 }`
Expected Results
`{ userid: NumberLong('894303306233552937') }` is shown in the query history.
Actual Results
`{ userid: 894303306233552900 }` is shown in the query history.
Additional Notes
894303306233552937 is outside of the safe integer range in JS, they almost certainly actually wanted `{ userid: NumberLong('894303306233552937') }`, instead of `{ userid: NumberLong(894303306233552937) }`.
- duplicates
-
COMPASS-7215 Generated filter for NumberLong is incorrect
- Closed