Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make embedded resource non-nullable if using inner join #458

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

wyozi
Copy link
Contributor

@wyozi wyozi commented Aug 8, 2023

What kind of change does this PR introduce?

Makes embedded many-to-one resource type non-null when using inner join

What is the current behavior?

Inner joined resources are nullable, even though in practice they must always exist

What is the new behavior?

Fixes inner joined embedded resource type

Additional context

fixes #456

@olee
Copy link

olee commented Feb 9, 2024

Hey, it would be cool if this can be merged as we are having the same issue with the incorrect types being generated for embedded, required relations.
Any reason why this does not get merged?

@wyozi
Copy link
Contributor Author

wyozi commented Mar 12, 2024

@steve-chavez rebased this one

@steve-chavez steve-chavez merged commit e26266a into supabase:master Mar 13, 2024
1 check passed
@wyozi wyozi deleted the parse-inners branch March 13, 2024 08:53
Copy link

🎉 This PR is included in version 1.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

!inner should make the relation non-nullable
3 participants