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

110
Vistas
Rendering a page with data from two tables with Sequelize

I'm making my first web dev project and I want to render a page that can access the content of two tables inside the same db, but I can't find how to do it in the documentation. I'm using PostgreSQL, express, node.js, and sequelize.

Promise
    .all(Marcas.findAll(), TiposAparelhos.findAll())
    .then((data) => {
        res.render('aparelhos/gerenciador', {
            marcas: data[0], tiposAparelhos: data[1]
        })
})    

I already tried this method but it didn't work

about 4 years ago · Juan Pablo Isaza
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