Node.js · Senior · Question 63 of 75

How does DataLoader solve the N+1 problem in a GraphQL server?

Explanation

Create a new DataLoader per request, so caching never mixes data between users.

Further reading

Problem with a question

Node.js · Senior · question 63

Test yourself

Take the Node.js · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz