Tengo un atributo de foto en uno de mis modelos Sequelize. Tengo un captador para ello.
photo: { type: Sequelize.STRING, get: function () { if (this.getDataValue("photo")) return process.env.IMAGE_PREFIX + this.getDataValue("photo") else return this.getDataValue("photo") } },pero cuando quiero encontrar todos los registros en este modelo con ({raw:true}) getter no funciona.
const categories = await Category.findAll({ limit: parseInt(limit), offset: parseInt(offset), raw: true, where: { title: { [Op.like]: '%' + searchString + '%' } } });si uso ({plain:true}) en su lugar, solo encuentra un registro.