SQL to supabase orm
How can I convert the following query to supabase's ORM ?
However, this gives unexpected results. Returns all
https://supabase.com/blog/postgrest-9#resource-embedding-with-inner-joins
I modified the code above using
Seems to be working now.
0 Results are fetched while there should have been 1 result.
collection_share is linked to collection by collection_id column with on_cascade_deleteedit:
Got the following error when trying out the code below:edit 2
Now i have tried the following:However, this gives unexpected results. Returns all
collections instead of select few for sharedWithId useredit 3
After reading:https://supabase.com/blog/postgrest-9#resource-embedding-with-inner-joins
I modified the code above using
!inner:Seems to be working now.
edit 4
I was wrong. It does not work.0 Results are fetched while there should have been 1 result.