Closed wyozi closed 3 months ago
When a relation has the !inner hint, the relationship can be considered to always exist due to the embedded resource being included as an inner join. Therefore, null can be dropped from the result type union.
!inner
null
const test = supabase().from("people").select("id, site:sites!inner(name)").then(r => r.data); /* type: { id: string; site: { name: string | null; } | null; } */
const test = supabase().from("people").select("id, site:sites!inner(name)").then(r => r.data); /* type: { id: string; site: { name: string | null; }; } */
:tada: This issue has been resolved in version 1.14.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Describe the bug
When a relation has the
!inner
hint, the relationship can be considered to always exist due to the embedded resource being included as an inner join. Therefore,null
can be dropped from the result type union.To Reproduce
Expected behavior