Including only pivot table #11230
Labels
question
status: understood
For issues. Applied when the issue is understood / reproducible.
type: docs
For issues and PRs. Things related to documentation, such as changes in the manuals / API reference.
Hi, we have a many-to-many relation b/w Foo and Bar models:
In order to save on performance, we want to include only a pivot table (FooBar) when executing
Foo.findAll()
and filter byBar.id
. Something like:instead of
But we're having:
'SequelizeEagerLoadingError: fooBar is not associated to foo!\
We need the data which is available there and we don't need any data from the associated table. Is this possible to do so?
The text was updated successfully, but these errors were encountered: