Skip to content

Exports withHooks - #875

Closed
bertho-zero wants to merge 1 commit into
feathersjs:masterfrom
bertho-zero:feathers-master
Closed

bertho-zero wants to merge 1 commit into
feathersjs:masterfrom
bertho-zero:feathers-master

Conversation

@bertho-zero

@bertho-zero bertho-zero commented May 27, 2018 •

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)

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