Can't tailor typegen to PostgREST v9 vs. v10 differences - v9 doesn't support one-to-one relationships
What is the new behavior?
Make one-to-one relationships optional. When we generate the types, e.g. from http://api.supabase.com/api/v1#/projects/getTypescriptTypes , we can check the project's PostgREST version first and detect one-to-one rels only if the project has PostgREST v10+
What kind of change does this PR introduce?
Feature
What is the current behavior?
Can't tailor typegen to PostgREST v9 vs. v10 differences - v9 doesn't support one-to-one relationships
What is the new behavior?
Make one-to-one relationships optional. When we generate the types, e.g. from http://api.supabase.com/api/v1#/projects/getTypescriptTypes , we can check the project's PostgREST version first and detect one-to-one rels only if the project has PostgREST v10+