79594512

Date: 2025-04-26 23:23:27
Score: 2.5
Natty:
Report link

The following works to return all rows:

const results = await sequelize.query(
  `SELECT id FROM moneys`,
  { type: QueryTypes.SELECT }
);
return results;

This is in line with the documentation at https://sequelize.org/docs/v6/core-concepts/raw-queries .

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: kkamara