What on earth happens when you pass QueryRunner as an argument to another method while making a transaction in TypeOrm?

I'm doing this in order to work within a single database connection, to avoid database deadlocks etc but it seems to cause some problems that are hard to debug. What I'm trying to understand is whether I should pass that argument or not, if not then what should I do? Create another transaction within that method or what?



Read more here: https://stackoverflow.com/questions/64190262/what-on-earth-happens-when-you-pass-queryrunner-as-an-argument-to-another-method

Content Attribution

This content was originally published by Albert at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: