Skip to content

Commit

Permalink
docs(knex): add missing import statement
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallswain committed May 29, 2024
1 parent ffbcc0a commit 74f411e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/api/databases/knex.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>, next: NextFunction) => {
try {
console.log('Start our work')
Expand Down

0 comments on commit 74f411e

Please sign in to comment.