Hooks are just like in wix-data but we have some notes for you:

  1. We have some extra hooks for extra functions in weivData.
  2. onFailure will tun only for the errors that's fired from hooks.

We are working to keep docs updated and add as much info as we can to provide better details.

Type Aliases

HookContext
HookName

Functions

afterCount
afterFindOne
afterGet
afterGetAndRemove
afterGetAndReplace
afterGetAndUpdate
afterIncrement
afterInsert
afterMultiply
afterPull
afterPush
afterQuery
afterRemove
afterReplace
afterUpdate
beforeCount
beforeFindOne
beforeGet
beforeGetAndRemove
beforeGetAndReplace
beforeGetAndUpdate
beforeIncrement
beforeInsert
beforeMultiply
beforePull
beforePush
beforeQuery
beforeRemove
beforeReplace
beforeUpdate
onFailure