Skip to content

Commit

Permalink
docs(knex): add missing import statement (#3489)
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallswain authored May 29, 2024
1 parent 7476a29 commit d654808
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 d654808

Please sign in to comment.