Knex transaction promise chain loses trx binding when returning base queries
Transaction scope ambiguity in promise chains When using knex.transaction() with a promise-based callback, the trx object passed to the callback is expected to scope all queries within that transaction. However, if a .then() handler returns a query built from the base knex instance instead of trx , it is unclear whether that query executes inside the transac