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

284
Views
Secuela que devuelve valores nulos de la base de datos (problema de API)

Parece que tengo un problema con Sequelize. La cuestión es que configuré una base de datos SQL, cuando trato de llegar a ella a través de una secuencia (nodo) simplemente devuelve valores anulados

 [ { "id": null }, { "id": null }, { "id": null }, { "id": null }, { "id": null }, { "id": null }, { "id": null }, { "id": null }, { "id": null }, { "id": null }, { "id": null } ]

Este es mi servicio, cuando creo un objeto dentro de la función findUsers y lo devuelvo como si fueran datos reales, simplemente funciona

 const User = require('../models/User'); const addUser = async (user) => { try { await User.create(user) } catch (e) { console.log(e); } } const findUsers = async () => { try { //return await User.findAll({}); const u = User.findAll(); /*u = { nom : "lozo", }*/ return u; } catch (e) { console.log(e) } } module.exports = {addUser,findUsers}
about 4 years ago · Juan Pablo Isaza
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!