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
Agree heavily. Supabase should add as many Prisma features as possible. If I could manage my Supabase database with a schema file (pulls and pushes like Prisma) and have type definition tied into that. It would be incredible.
It's also greatly useful for NestJS. Creating a provider works fine using the generated types, but attempting to use them for typing the DTOs is impossible as you're not able to use Database['public']['Tables']... with implements nor should you have to.
Feature request
Is your feature request related to a problem? Please describe.
The types generated by the CLI should have multiple interfaces/types instead of nested types to improve usability.
Currently we have to use
createClient<Database>(...)
and for explicitly typing return types we have to useDatabase['public']['Tables']['...']['Row']
Describe the solution you'd like
By giving us multiple defined types/interfaces we could just use
TodoTableRow
orTodoTableInsert
for example.The text was updated successfully, but these errors were encountered: