Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

306
Views
Unsure why supabase is not returning values from foreign table

I have a query that also selects from a foreign table. The current table already has a foreign key relationship. Here is my query

const { data, error } = await supabase
        .from('comments')
        .select('content,created_at,user(pfp,username)')
        .eq('chapter', chapterid)
        .limit(7)
        .select()

This is what is returned: {id: 5, created_at: "2022-03-03T18:16:20.592125+00:00", user: "7a2750e7-0d25-4a40-9236-ce7a42d61bd2", chapter: "1b4e4595-089e-457c-ac89-9ed4eace0ca9", content: "Woahh"}

My comments table Comments Table

The table the user column references (profile table)

Profile table

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This question was answered on GitHub

You have an extra .select() at end which fetches all columns...

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!