Error: Only HasMany associations support include.separate
@SippieCup がすでに取り組んでいます。
2026年3月29日 から。
評価
この issue はまだ評価されていません。
説明
Issue Description
The documentation regarding "Separate eager-loading queries" implies that the separate: true option is a valid solution for BelongsToMany associations, but using it throws an error.
What was unclear/insufficient/not covered in the documentation
In the Separate eager-loading queries section, the text groups HasMany and BelongsToMany together when explaining performance issues with joins.
It immedately follows that up with: "To avoid this, you can use the separate option."
Because they are grouped together in the problem description, it sounds like separate is the solution for both. However, trying this on a BelongsToMany asociation results in: Error: Only HasMany associations support include.separate
The docs currently don't mention that this option is restricted to HasMany only.
If possible: Provide some suggestion on how we can enhance the docs
It would be clearer if we added a note explicitly stating that separate is currently HasMany only, or update the phrasing so BelongsToMany isn't grouped into the sentence introducing the solution.
Additional context
Link to the section: https://sequelize.org/docs/v7/querying/select-in-depth/#separate-eager-loading-queries
- 主要言語
- HTML
- スター
- 30
- フォーク
- 171
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
sequelize/website のほかの issue
-
docs: Managed Postgres callout + optional Appwrite link on postgres.mdx?対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 74/100
-
Update Migration.mdオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 45/100