many-to-many returns empty array

I have the following tables:
account =>
id
, ...
sheet =>
id
, ...
connected_sheets => pk(account_id, sheet_id), fk(account_id), fk(sheet_id)

After following the docs on many-to-many joins here: https://supabase.com/docs/guides/database/joins-and-nesting?queryGroups=language&language=js#many-to-many-joins, I'm trying to select them like this:

const { data, error} = await supabaseClient
    .from('account')
    .select(`
      *,
      sheet(sheet_id)
    `)
    .eq('id', id)
    .single();


I have inserted a row in the join table that connects the account with that same id to a sheet

But I get this response:

{
  id: "66",
  ...,
  sheet: []
}


What am I doing wrong here?
Was this page helpful?