Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

310
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda