Click in order · NestJS course · Module 3: TypeORM and Databases

Transaction with QueryRunner

Arrange the elements of a QueryRunner transaction code in the correct order:

Items to click

  • const queryRunner = dataSource.createQueryRunner();
  • await queryRunner.commitTransaction();
  • await queryRunner.startTransaction();
  • await queryRunner.release();

You can check the correct answer by solving this task in the CodeWorlds game.