79104438

Date: 2024-10-19 07:56:45
Score: 0.5
Natty:
Report link

Like said in other answers you can get a result from the dataValues key, however I found it's more easy to just add raw: true key and then you will get data result instead of the model instance:

const users = User.findAll({
    raw: true,
    //Other parameters
});

Inspired by that answer Get only dataValues from Sequelize ORM

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: electroid