[GH-ISSUE #121] Add BigInt support #71

Closed
opened 2026-05-23 08:29:05 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @Mitsichury on GitHub (Jun 26, 2022).
Original GitHub issue: https://github.com/appy-one/acebase/issues/121

Originally assigned to: @appy-one on GitHub.

Hi :)

I have noticed that if I add a BigInt field, I can't sort or apply filters on it.
It is rightly stored and loaded.
Could you add the support if BigInt for filtering please ?
Could be great as JS does not handle big numbers with precision.

Thank you :)

Originally created by @Mitsichury on GitHub (Jun 26, 2022). Original GitHub issue: https://github.com/appy-one/acebase/issues/121 Originally assigned to: @appy-one on GitHub. Hi :) I have noticed that if I add a BigInt field, I can't sort or apply filters on it. It is rightly stored and loaded. Could you add the support if BigInt for filtering please ? Could be great as JS does not handle big numbers with precision. Thank you :)
gitea-mirror 2026-05-23 08:29:05 -06:00
Author
Owner

@appy-one commented on GitHub (Jul 4, 2022):

Your bigints now are stored as strings in the db, that's why they don't sort ok. I'm working on bigint support now, check latest commits

<!-- gh-comment-id:1174108721 --> @appy-one commented on GitHub (Jul 4, 2022): Your bigints now are stored as strings in the db, that's why they don't sort ok. I'm working on bigint support now, check latest commits
Author
Owner

@Mitsichury commented on GitHub (Jul 6, 2022):

Amazing, thx a lot 👍

<!-- gh-comment-id:1176604689 --> @Mitsichury commented on GitHub (Jul 6, 2022): Amazing, thx a lot 👍
Author
Owner

@appy-one commented on GitHub (Aug 19, 2022):

Support for bigint has now been implemented and published in v1.22.0!

Spread the word contribute Sponsor AceBase

<!-- gh-comment-id:1221010963 --> @appy-one commented on GitHub (Aug 19, 2022): Support for `bigint` has now been implemented and published in v1.22.0! [![Spread the word](https://user-images.githubusercontent.com/26569719/169265089-3d593555-e1ad-4390-986b-877ac2c38a47.svg)](https://twitter.com/intent/tweet?button=&url=https://github.com/appy-one/acebase&text=I'm+using+@AcebaseRealtime+in+my+project+to+make+my+life+easier!&button=) [![contribute](https://user-images.githubusercontent.com/26569719/169265318-30c4c6a5-7c89-46a0-a7a2-ef433a8192f4.svg)](https://github.com/appy-one/acebase#contributing) [![Sponsor AceBase](https://user-images.githubusercontent.com/26569719/168233053-8e56b243-4140-40ab-9a30-4cb3cc149bfe.svg)](https://github.com/sponsors/appy-one)
Author
Owner

@Mitsichury commented on GitHub (Aug 20, 2022):

Hi appy-one,
Thank you for publishing a new realese, I tried to update but it seems that add an Index on BigInt value is not working well.
I have an error about JSON serialisation : TypeError: Do not know how to serialize a BigInt

const totalResults = await query.take(1000000).count()

I'll try to create a unit test for that.
Thanks !

<!-- gh-comment-id:1221403046 --> @Mitsichury commented on GitHub (Aug 20, 2022): Hi appy-one, Thank you for publishing a new realese, I tried to update but it seems that add an Index on BigInt value is not working well. I have an error about JSON serialisation : TypeError: Do not know how to serialize a BigInt const totalResults = await query.take(1000000).count() I'll try to create a unit test for that. Thanks !
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase#71
No description provided.