File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 22title : Solving the N+1 Problem with `DataLoader`
33---
44
5- When building a GraphQL API with ` graphql-js ` , it's common to
5+ When building a server with GraphQL.js , it's common to
66run into performance issues caused by the N+1 problem: a pattern that
77leads to a large number of unnecessary database or service calls,
88especially in nested query structures.
@@ -42,7 +42,7 @@ duplicate queries unless you implement deduplication or batching manually.
4242
4343## Why this happens in GraphQL.js
4444
45- In ` graphql-js ` , each field resolver runs independently. There's no built-in
45+ In GraphQL.js , each field resolver runs independently. There's no built-in
4646coordination between resolvers, and no automatic batching. This makes field
4747resolvers composable and predictable, but it also creates the N+1 problem.
4848Nested resolutions, such as fetching an author for each post in the previous
You can’t perform that action at this time.
0 commit comments