Skip to content

Exports withHooks - #874

Closed
bertho-zero wants to merge 25 commits into
feathersjs:masterfrom
bertho-zero:master
Closed

bertho-zero wants to merge 25 commits into
feathersjs:masterfrom
bertho-zero:master

Conversation

@bertho-zero

Copy link
Copy Markdown
Contributor

This method also allows you to add hooks for a single call.:

await withHooks({
  app,
  service: svc,
  method: 'create'
})({
  before: {/**/},
  after: {/**/},
  error: {/**/},
  finally: {/**/}
})(data)

@bertho-zero

Copy link
Copy Markdown
Contributor Author

The equivalent of this PR can be merged with #864 + https://github.com/bertho-zero/feathers/pull/2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant