Sequelize: Filter query by amount of associations #16760
Unanswered
JaRoMasterDev
asked this question in
Help & Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have two models in sequelize: modelA and modelB. Those models are in a many-to-many relation.
I want to get all entitys of modelA that are assiciated to (multiple) specific instances of modelB.
For example, I want to get all models of modelA that have a relation to modelBs with id (1, 3, 4). I want to get every model a that AT LEAST has a relation to all of the specified modelBs.
How can implement this in sequelize?
Beta Was this translation helpful? Give feedback.
All reactions