The types for select queries do not have types for count since it is not a column of the table.
What is the new behavior?
Types for count are added to all tables, since it is an aggregate which supported by PostgREST and is widely used in the Supabase-js documentation as well.
What kind of change does this PR introduce?
Feature
What is the current behavior?
The types for select queries do not have types for
count
since it is not a column of the table.What is the new behavior?
Types for
count
are added to all tables, since it is an aggregate which supported by PostgREST and is widely used in the Supabase-js documentation as well.Additional context
This PR is stacked on top of #497. Closes https://github.com/supabase/postgrest-js/issues/447, https://github.com/supabase/postgrest-js/issues/479.
I'm not sure if the handling of the cardinality is correct for this.