Posts by Maikel • 1 point
1 post
-
0
votes1
answer63
viewsA: QUERY ERROR sequelize Association LEFT OUTER JOIN API NODEJS
See if it works like this: async indexById(req, res) { const { id_user } = req.params; const user = await User.findByPk(id_user, { include: { association: 'administrator',required: true} }); return…