feathers-hooks-common icon indicating copy to clipboard operation
feathers-hooks-common copied to clipboard

Dove before after around utils

Open fratzinger opened this issue 2 years ago • 0 comments
trafficstars

Use regular hooks in around with beforeAround & afterAround:

import { beforeAround } from 'feathers-hooks-common';

service.hooks({
  around: {
    find: [
      beforeAround((context) => {
        // do whatever you need to do
      }),
      // other around hooks
    ]
  }
});

fratzinger avatar Feb 08 '23 20:02 fratzinger