DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
GraphQL Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
GraphQL
Why does creating a DataLoader at module scope (outside the context function) defeat its purpose?
A
It doesn't — module scope is the recommended location
B
It creates ONE shared loader across ALL requests, causing the cross-request cache leakage confirmed as a real bug in N+1 Problem & DataLoader
C
Module-scope DataLoaders don't batch correctly
D
This causes a compile error
Check Answer