© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
2 replies
Dontblink

Query table with multiple cols with same foreign key. Join tables.

I have two tables structured in the following ways

I'm trying to get the equipable_items when I query character_equipment like this

But I'm getting this error
Could not embed because more than one relationship was found for 'character_equipment' and 'equipable_items
Could not embed because more than one relationship was found for 'character_equipment' and 'equipable_items


Now It looks like I can do something like this

equipable_items!character_equipment_hands_fkey
equipable_items!character_equipment_hands_fkey


instead of equipable_items(*), but I need to get the individual data for the item for each col.

Is this just a bad way I've set up my tables or am I not using the supabase call correct?

Thanks!
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Issue to query foreign tables
SupabaseSSupabase / help-and-questions
4y ago
Query foreign table twice, once directly, once through join table
SupabaseSSupabase / help-and-questions
4y ago
foreign key select query question
SupabaseSSupabase / help-and-questions
4y ago
inner join without foreign key relationship
SupabaseSSupabase / help-and-questions
3y ago