SupabaseS
Supabase4y ago
Matt

How do I write a simple join for these tables in v2

profiles
  user_id (pk)
  username 
  avatar_url


posts
  post_id (pk)
  user_id
  title
  description


I want to just get do a select get every post along with the users profile who made the post, but I get error (400) when I try. Just returns null, but this is what the API section says to use.

let { data: posts, error } = await supabase
    .from('posts')
    .select('*, profiles(*)')
unknown.png
Was this page helpful?