Skip to content

Conversation

soedirgo
Copy link
Member

@soedirgo soedirgo commented Nov 2, 2023

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+

@soedirgo soedirgo requested review from a team as code owners November 2, 2023 06:47
@soedirgo soedirgo merged commit 893af73 into master Nov 2, 2023
@soedirgo soedirgo deleted the feat/optional-one-to-one-rels-detection branch November 2, 2023 07:05
avallete pushed a commit that referenced this pull request May 13, 2025
…etection

feat(typegen): make 1-to-1 relationships detection optional
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants