MEM002warningPro
unbounded-eager-load
Eager loading pulls all related records without a limit.
Applies to: JavaScript, Python, TypeScript
Why this matters
Loading all related records (e.g., include: { contacts: true }) pulls the entire relation into memory. A user with 50,000 contacts will load all of them in one query. Use pagination (take:) or select specific fields instead.
Catch it before it ships
pip install stablestack # or: npx stablestackstablestack # scans your project, MEM002 includedstablestack explain MEM002MEM002 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.
False positive in your codebase? Suppress a single line with # noqa: MEM002