bigint is not a number
I'm trying to execute this query but get the following error that I'm hoping someone here can help me with:
but get the following overload error:
My schema for the related fields are also posted below.
6 Replies
Hello, @'tonyyprints'! Could you please clarify what is the value of
profile.profileId
?This is where profile comes from. profileId should be the serial index of the row
could you please show me your
user
schema?happy to:
okay, so the issue is with
mode: bigint
. In your application, mode is used to infer the type, which means that profileId is treated as having a bigint
type in JavaScript/TypeScript. However, schema.profile.id
is treated as having a number
type in JavaScript/TypeScript. This is why you're encountering an error.
Can you update your schema code and set mode: number
?ohhhhh that makes so much sense. Thank you. Just replaced all instances to number and it works 🙏