Skip to content

fix(types): inner join type on nullable relationships #612

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

Merged
merged 1 commit into from
Mar 29, 2025

Conversation

avallete
Copy link
Member

Thank's to MRE example repo setup here: https://github.com/masda70/supabase-non-null-inner-join/tree/working

Fixes the type for !inner join that are typed as nullable but shouldn't.

Fixes: supabase/supabase-js#1368

Comment on lines +94 to +97
hotel: {
id: number
name: string | null
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note

Since this come from an !inner join it should not be null as it's filtered at the join level.

@avallete avallete requested a review from soedirgo March 28, 2025 15:49
@avallete avallete merged commit 956ed18 into master Mar 29, 2025
3 checks passed
Copy link

🎉 This PR is included in version 1.19.4 🎉

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.

Bug: TypeScript type inference allows null for !inner join results in supabase-js v2.48.1
2 participants