1
Have good support for Views with non-nullable foreign key relationships
Source: supabase/supabase#50597 · opened by @brandonchinn178
Exposing non-nullable table columns in views has been asked before ( and the current guidance is "It's a Postgres limitation, we have to workaround it". However, even if Postgres doesn't support it, it would be nice if supabase's type generation had a special carve-out for it.
Our current workaround is to cast the columns into non-nullable types like
This works, but now the foreign key relationship is destroyed and PostgREST is unable to find the relationship between active_posts and users.
Our current workaround is to cast the columns into non-nullable types like
This works, but now the foreign key relationship is destroyed and PostgREST is unable to find the relationship between active_posts and users.
No pledges yet. Be the first to back this.
Comments
Similar requests
Improve table editor UI for arrays of foreign keys (they aren't supported)
2 votes · 0 comments
pgx-managed Postgres w/ wrappers behaved differently from locally-installed Postgres w/ wrappers
2 votes · 0 comments
Default schema for Foreign Keys
1 vote · 0 comments
Subscribing to a table doesn't load relationships to other tables
4 votes · 0 comments
Foreign key relations page
1 vote · 0 comments
No comments yet.