Hi, I have queries with several includes and has many relations of rows where at the end I am getting cartesian product and is slow. Looking for, I see that with Sequelize I can use separate:true in includes (https://github.com/sequelize/sequelize/pull/4177), but dont see it in your package. How can I use it?
Thanks
Hey @oscarcalvo thanks for reporting this. separate: boolean needs to be added to the IIncludeOptions.
For now you can make the compiler happy with this:
{
include: [{
['separate' as any]: true,
}]
}
(This seems to be missing on the sequelize typings as well)
ok thanks you
why is this closed ? please re-open. this option was not added.
Most helpful comment
Hey @oscarcalvo thanks for reporting this.
separate: booleanneeds to be added to theIIncludeOptions.For now you can make the compiler happy with this:
(This seems to be missing on the sequelize typings as well)