Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Queries with Large Numbers (BigInt/BigNumber) #26

Open
DonPauer opened this issue Jul 1, 2022 · 0 comments
Open

Add Support for Queries with Large Numbers (BigInt/BigNumber) #26

DonPauer opened this issue Jul 1, 2022 · 0 comments

Comments

@DonPauer
Copy link

DonPauer commented Jul 1, 2022

In my database, I am using large integers (e.g. 76561198060487740) for storing userIDs that I receive from an external API, which is larger than the MAX_SAFE_INT for the javascript number primitive.
Unfortunately, queries using .listDocuments only allow the primitive type number. I have workarounded this for now by storing a copy of the ID as a string, but it would be much better to be able to query this by integer value.

I just started using Javascript a few days ago so maybe there is an alternative here that I am not aware of, suggestions would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant