Closed
Description
Feature request
Is your feature request related to a problem? Please describe.
Currently we recommend creating Types from the OpenAPI spec (https://supabase.io/docs/reference/javascript/generating-types)
This will cause a few problems because the types in Open API spec are somewhat limited.
Describe the solution you'd like
It would be great to generate these definitions directly from the database. If we build it into this library then we can use it on the Dashboard and our CLI.
Additional context
- Issue: Array Columns Type Generation: Add Note Regarding Array Columns Type Generation supabase#1215
- We need different "types" for
selects
(which allow relationship) andinsert/update
(which don't allow relationships) - We should configure this so that we can generate types for other languages too