NestJS · Junior · Question 47 of 75

Why are async methods common in Nest services?

Explanation

Controllers can return a promise or an Observable, and Nest sends the resolved value.

Further reading

Problem with a question

NestJS · Junior · question 47

Test yourself

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

Take this quiz