NestJS · Senior · Question 39 of 75

Why must DataLoader instances be created per request in a Nest GraphQL app?

Explanation

Create loaders in the GraphQL context factory or a request-scoped provider.

Further reading

Problem with a question

NestJS · Senior · question 39

Test yourself

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

Take this quiz