Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
get the corresponding repository instance. Simply put, this method will give us a repository instance and that repository will run queries inside a transaction if the transaction interceptor is used. If transaction interceptor was not used, it will run queries outside of any transaction.