Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories IDEs
Created by Guest
Created on May 4, 2021

Handle 64bit numbers correctly

Javascript doesn't support 64bit internally, so if I try in Chrome/console: x = 285870311191169181, it becomes 285870311191169180, and the same thing happens in VS Code. The solution would be to return a NumberLong("285870311191169181") text result. In fact, it seems to be an issue in Compass as well... but it works in mongo shell. Check the screenshot.