-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error after upgrading to v2.33.1: SelectQueryError<"Referencing missing column computed_review_score
">
#474
Comments
Same issue here, broke my entire codebase. I'm rolled back to an older version that supports computed columns:
Sadly these version has issues with |
I'm experiencing the same problem with supabase-js |
Im having the same issue! Same version But when I console log it, the object exists |
Similar problem with supabase-js 2.42.4 and postgrest-js 1.15.2 and updated TypeScript types: const { data, error } = await supabase.from('category')
.select('*, parent_category(id, name, color)')
// parent_category: SelectQueryError<"Referencing missing column `color`">[]
// or whatever column is mentioned last in the query
|
having the same issues as what everyone else is mentioning. i am using is Supabase not able to parse PostgREST syntax that contains computed columns/computed fields correctly in TypeScript? SelectQueryError<"Referencing missing column `session_count`"> |
I am getting the same error, but when querying a table and joining to the same secondary table twice. With the following tables: create table country (
id bigint generated by default as identity,
code text not null
);
create table trip (
origin_id bigint not null,
destination_id bigint not null,
constraint trip_origin_id_fkey foreign key (origin_id) references country (id),
constraint trip_destination_id_fkey foreign key (destination_id) references country (id),
); and access as such function fetchTrip(tripId: number) {
return supabase.from("trip").select(`
id
origin:origin_id ( code ),
destination:destination_id ( code )
`).eq(
"id",
tripId,
).single()
} In the browser I can see that this returns, for a randomly selected trip. {
"id": 1,
"origin": {
"code": "AU",
},
"destination": {
"code": "US"
}
} But if try to type the return type of |
Bug report
Describe the bug
Error after upgrading to 2.33.1 I'm getting this Typescript error:
SelectQueryError<"Referencing missing column 'computed_review_score'">
computed_review_score
is a function:And this is the query:
Also it is strange that the generated type for this function has unknown for the argument, it should be the table type:
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: