sdk-for-web icon indicating copy to clipboard operation
sdk-for-web copied to clipboard

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

Open DonPauer opened this issue 3 years ago • 0 comments

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.

DonPauer avatar Jul 01 '22 12:07 DonPauer