feathers-hooks-common
feathers-hooks-common copied to clipboard
Dove before after around utils
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
]
}
});