Sequelize :: Limit and Order INSIDE an Include[] construct
问题 I have the following model hierarchy: User.hasMany(Child); Child.hasMany(Profile); Once I have a User object loaded, I need to load its Children and their associated Profiles according to the following logic: Load all Children for the User , sorted by name . For each Child , load the first three Profiles reverse sorted by id . Is there a way to limit and sort the eager-loaded Profiles ? I can limit and sort the Children but not the Profiles . user.getChildren({ limit: 10, order: [['name',