NestJS · Senior · Question 6 of 75

How do you inject the current request into a provider, and what does it cost?

Explanation

In GraphQL the request lives in the context (CONTEXT). For most needs, ALS gives per-request data without scope changes.

Further reading

Problem with a question

NestJS · Senior · question 6

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