I use the functional loading of nested intolerance , this is an example of a continuation:
User.findAll({ include: [{ model: Tool, as: 'Instruments', include: [{ model: Teacher, where: { school: "Woodstock Music School" }, required: false }] }] }).then(function(users) { })
Imagine you want to make an endpoint
'summary', and you want to include the Teacher model
, but only the first three results
Can I use only subloading?
Does Sequelize provide a way to achieve this?
source share