I have BigInt id columns that I have to query with id::text everywhere due to overflow issues (related: #319). However, these queries breaks the ParseQuery type.
To Reproduce
Backed by a column of type BigInt, write a query and typecheck with TypeScript:
let { data, error } = await supabase
.from("subscriptions")
.select("id");
Hover over data to see the inferred type.
Expected behavior
As a result of the query above, id type is computed as string.
Screenshots
If applicable, add screenshots to help explain your problem.
Bug report
Describe the bug
I have BigInt id columns that I have to query with
id::text
everywhere due to overflow issues (related: #319). However, these queries breaks theParseQuery
type.To Reproduce
Backed by a column of type
BigInt
, write a query and typecheck with TypeScript:Hover over
data
to see the inferred type.Expected behavior
As a result of the query above,
id
type is computed asstring
.Screenshots
If applicable, add screenshots to help explain your problem.
System information