Per-Request Database Transactions with NestJS
Back in 2020, I wrote an article about how to set up a database transaction that lasts the entire request (using TypeORM). However, the approach I took had two major drawbacks: The primary reason I went this route back in 2020 was because there was no stable way to store context about about the currently …