Skip to content
Networking·Intermediate·Conceptual·1 min read

What does GraphQL's N+1 problem refer to?

Short interview answer

Resolving nested fields naively can issue one database or service call per parent record inside a loop. A batching layer such as DataLoader coalesces those calls into a single batched request per level.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to REST, GraphQL, and WebSockets

Related questions