diff --git a/docs/api/databases/knex.md b/docs/api/databases/knex.md index e265d728f6..22bd6c8baa 100644 --- a/docs/api/databases/knex.md +++ b/docs/api/databases/knex.md @@ -404,6 +404,8 @@ create: [ Using the global hooks in `src/app.ts` we are able to wrap all of our `create`, `update`, and `patch` hooks. ```ts +import { transaction } from '@feathersjs/knex' + const transactionHandler = async (context: HookContext, next: NextFunction) => { try { console.log('Start our work')