8000 Exports withHooks by bertho-zero · Pull Request #875 · feathersjs/feathers · GitHub
[go: up one dir, main page]

Skip to content

Exports withHooks#875

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

Exports withHooks#875
bertho-zero wants to merge 1 commit intofeathersjs:masterfrom
bertho-zero:feathers-master

Conversation

@bertho-zero
Copy link
Contributor
@bertho-zero bertho-zero commented May 27, 2018

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

0