NestJS · Middle · Question 23 of 75

How can a custom validation rule check something asynchronous, like 'email is not taken'?

Explanation

Async checks improve error messages but have race conditions. The database constraint must catch concurrent duplicates.

Further reading

Problem with a question

NestJS · Middle · question 23

Test yourself

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

Take this quiz