© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
2 replies
lewisd

How can I use a join table to then select from a 3rd table

Hi guys, im migrating from firebase so im used to noSQL, so im looking for the best way to achieve the following:

I have a
listings
listings
,
listingLikes
listingLikes
and a
userData
userData
table.

I have the very standard setup of when a user likes a listing, a
listingLikes
listingLikes
row is created connecting the
listing
listing
and the
userData
userData
.
listingLikes
listingLikes
just contains a
listingId
listingId
and a
userId
userId


Using
supabase-js
supabase-js
how can i say "Go find all the
listingLikes
listingLikes
that has this
listing
listing
as the
listingId
listingId
, then get all the
userIds
userIds
and select them from the
userData
userData
table?
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

How to select from two tables?
SupabaseSSupabase / help-and-questions
4y ago
How can I rename the variable when I select a table?
SupabaseSSupabase / help-and-questions
4y ago
Select join
SupabaseSSupabase / help-and-questions
13mo ago
How to query data using a join table?
SupabaseSSupabase / help-and-questions
4y ago