appwrite / sdk-for-web

[READ-ONLY] Official Appwrite Web SDK šŸ§”

Home Page:https://appwrite.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

DonPauer opened this issue Ā· 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.