You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you mean you are using sequelize 1.4? We have no form of support for that, at all and I'm pretty sure findAndCountAll is not in there :). Do you mean 1.7?
Please shows your models, associations and the code to generate the query you show.
There's a general bug with findAndCountAll and include.
We need to change the logic so that count only gets the set of nested includes that are required.
Activity
janmeier commentedon Oct 23, 2014
Do you mean you are using sequelize 1.4? We have no form of support for that, at all and I'm pretty sure findAndCountAll is not in there :). Do you mean 1.7?
Please shows your models, associations and the code to generate the query you show.
ThePoloQ commentedon Oct 23, 2014
Yes sorry I meant 1.7 ... problem of my big finger
The model
here the function
It is a problem because it is counting with subtasks
So a task can be counting many times (number of subtask associated)
janmeier commentedon Oct 23, 2014
Can you pretty pretty please provide a smaller example :). And one where I don't have to guess what's inside req.params ...
mickhansen commentedon Oct 23, 2014
There's a general bug with
findAndCountAllandinclude.We need to change the logic so that
countonly gets the set of nested includes that are required.mickhansen commentedon Dec 3, 2014
Likely fixed by 82403cf - else please open new issue with specific test case.