shahrukh ahmed
09/16/2022, 6:10 PMtransaction_id=22596059218
. Now I want to update this into a Prisma integer field. I convert the query parameter string to an integer with transactionId = parseInt(transaction_id)
and update
await prisma.user.update({
where: { id: userId },
data: {
transactionId,
}
})
The weird bit is, when I check in Prisma studio, the value for transactionId
is 1121222738
. Anyone have an idea?Raphael Etim
09/16/2022, 8:03 PM2147483647
and you are storing 22596059218
. Would using a BigInt
datatype suffice for you?shahrukh ahmed
09/17/2022, 11:24 AM