JW
08/30/2021, 11:41 AMselect
*
from
calculator_screens
inner join calculator_answers answer on answer.calculator_screen = calculator_screens.id
That's my pure sql query, working fine. I am trying to do the same on the frontend, what would the query look like?
I have a third table calculator_moves
that has a foreign key to a calculator_answer
and to calculator_screens
. Anything I try using postgrest ends in an More than one relationship was found for calculator_screens and calculator_answers
error even though calculator_moves
is never touched
Do i need to use stored procedure to run my query?silentworks
08/30/2021, 3:21 PMRichCorbs
08/31/2021, 1:39 AMawait supabase
.from('calculator_screens')
.select('*, calculator_answers!calculator_screen(*))
JW
08/31/2021, 5:52 AM