NestJS · Middle · Question 32 of 75

How do you run several TypeORM operations in one transaction in Nest?

Explanation

Operations through injected repositories outside the manager don't join the transaction. Libraries like typeorm-transactional use ALS to propagate it.

Further reading

Problem with a question

NestJS · Middle · question 32

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