Many-to-many Relation is not Detected
I have the following tables:
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:
But I get this error:
What am I doing wrong here? The only thing I can see is that it's a naming issue
agents => uuid, ...channels => uuid, ...agent_channel: uuid, agent_uuid (fk), channel_uuid (fk)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:
But I get this error:
What am I doing wrong here? The only thing I can see is that it's a naming issue
id vs uuid - is this a requirement?
data, I get this (which is correct):The Data APIs automatically detect relationships between Postgres tables.