© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•13mo ago•
4 replies
znsh

Inner join not returning data

I'm trying to join 2 tables together,
responses
responses
and
users
users
. Responses is the main table that I'm showing on the UI, but it doesn't contain the user email hence why I'm trying to join. Responses has the user_id column which is a foreign key (I assume) from users. This is the query I wrote, it returns null, if I query each table separately I get the data. What could be the issue?

const { data: users } = await client.from('responses').select(
    `
      *,
      users (
        id,
        email
      )
    `,
  );

  console.log('users', users); // null
const { data: users } = await client.from('responses').select(
    `
      *,
      users (
        id,
        email
      )
    `,
  );

  console.log('users', users); // null
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

inner join really slow
SupabaseSSupabase / help-and-questions
4y ago
Inner Join in Dart
SupabaseSSupabase / help-and-questions
4y ago
Complex or(), and with inner join not working
SupabaseSSupabase / help-and-questions
4y ago
Insert not returning new data
SupabaseSSupabase / help-and-questions
4y ago