mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 07:33:17 +00:00
Update docs/docs/docs/01-core/database/02-transactions.md
Co-authored-by: Ben Irvin <ben@innerdvations.com>
This commit is contained in:
parent
39dae2b701
commit
4ffaefcb18
@ -79,7 +79,7 @@ await strapi.db.transaction(async ({ onCommit, onRollback }) => {
|
||||
|
||||
### Using knex queries
|
||||
|
||||
Transactions can also be used with knex queries.
|
||||
Transactions can also be used with knex queries, but in those cases `.transacting(trx)` must be explicitly called.
|
||||
|
||||
```js
|
||||
await strapi.db.transaction(async ({ trx, rollback, commit }) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user