postgrest-js icon indicating copy to clipboard operation
postgrest-js copied to clipboard

Supabase inner join not working with Typescript.

Open roker15 opened this issue 2 years ago • 3 comments

const { data, error } = await supabase<Messages>
  .from('messages')
  .select('*, users!inner(*)')
  .eq('users.username', 'Jane')

this shows Type error at users.username

roker15 avatar Aug 27 '22 03:08 roker15

Sorry for the late reply. Can you try this with @supabase/supabase-js@rc? We'll release this as v2 soon - v1 likely won't be updated from then on.

soedirgo avatar Sep 09 '22 08:09 soedirgo

Sorry for the late reply. Can you try this with @supabase/supabase-js@rc? We'll release this as v2 soon - v1 likely won't be updated from then on.

What is rc? When u releasing v2

roker15 avatar Sep 09 '22 08:09 roker15

It's the release candidate for the new version: https://supabase.com/docs/reference/javascript/next/release-notes

Current plan is to release v2 next week.

soedirgo avatar Sep 09 '22 08:09 soedirgo