You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The actual returned type is {tableAFK: number} like {tableAFK: 1} instead of {tableAFK: string} like {tableAFK: "1"}. But the typescript inferred type is correct: {tableAFK: string}, the return value is a number though.
The text was updated successfully, but these errors were encountered:
To explain, the select from table a is returning an id of type string. The select also returns a JSON array of what I expect to also be of type string[] since the column I am selecting from is type id, and generated columns return string. Instead it actually returns number[]
I have two Postgres tables like this:
Table A: id (auto increment)
Table B: id (auto increment), tableAFK (references Table A)
Then, I perform a select from with jsonArrayFrom:
The actual returned type is
{tableAFK: number}
like{tableAFK: 1}
instead of{tableAFK: string}
like{tableAFK: "1"}
. But the typescript inferred type is correct:{tableAFK: string}
, the return value is a number though.The text was updated successfully, but these errors were encountered: