When using BigInt in prisma.schema it expects the typescript type "bigint" not "BigInt", bigint can only hold 2^53 but i am storingnumbers of magnitude 2^63
👀 1
a
Austin
07/11/2022, 9:00 PM
Hey there!
I think if your numbers don’t fit inside a BigInt, you will need to store them as strings.
v
Vladi Stevanovic
07/18/2022, 7:43 PM
👋 hey @Halvor ! Did you have a chance to see Austin's comment?
Let us know if this is still an issue for you!
h
Halvor
07/18/2022, 8:55 PM
Well i workarounded it with strings as Javascript doesn’t support real bigint (like int64)
v
Vladi Stevanovic
07/19/2022, 6:59 AM
That makes sense, thank you for confirming you found a workaround!