You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: