5 Replies
@kyra 🩵🩷🤍🩷🩵 is this fixed with the rewrites?
It’s a separate path, can be solved by making the object they’re serialising have a toJSON method
Otherwise I can “fix it” by serialising bigint to string but… that has a heavy performance impact
how can I fix this
i just put a Date.now() as BigInt in prisma
and return that in res.json
If it's a date, maybe serialize it to a string beforehand? Unix timestamp as a string that is.
Number is fine in that specific case