79518139

Date: 2025-03-18 16:46:34
Score: 2.5
Natty:
Report link

Did you tried this kind of syntax with " referencedTable" ?

const { data, error } = await supabase
        .from('friends')
        .select('recieved!inner(*), sent!inner(*)')
        .eq('accepted', true)
        .or(`id.eq.${user?.id}`, { referencedTable: 'sent' })
        .or(`id.eq.${user?.id}`, { referencedTable: 'receive' })
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Did you
  • Low reputation (0.5):
Posted by: bk3