© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
5 replies
Deleted User

Understanding how to create a join in JavaScript

I need some help understanding how to create a join in JavaScript.

I currently have a friend requests table which has two foreign keys which are user ID's on the profiles table.

friend_requests table
sender_id UUID
receiver_id UUID

Currently I am doing a request to get back all the requests for a user

let { data: friend_requests, error } = await supabase
  .from('friend_requests')
  .select('*')
let { data: friend_requests, error } = await supabase
  .from('friend_requests')
  .select('*')


How do I structure this to get all the profile table rows with the sender and receiver UUID's? The profiles table has a
id
id
that matches up to the sender_id and receiver_id

Very new to SQL so I appreciate this help.
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 optimize a simple join
SupabaseSSupabase / help-and-questions
4y ago
How to create a db branch in a Github Action?
SupabaseSSupabase / help-and-questions
4mo ago
How to create & edit a custom schema in superbase?
SupabaseSSupabase / help-and-questions
4y ago
How to create a selling platform?
SupabaseSSupabase / help-and-questions
4w ago