feathers: Hooks do not apply for realtime events
Hi, I’ve just found that hooks do not apply for realtime events. Following code will remove password field from service response.
app.service('users').after({ all: hooks.remove('password'), });
But when entry is updated, whole entry is emmited through updated event, even with password field.
Are there any plans for unifiying filters for both service methods and realtime events or is there any workaround?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 20 (11 by maintainers)
Commits related to this issue
- Exclude route parameters when generating nested folders (#376) — committed to feathersjs/feathers by robbiedhickey 6 years ago
💯 @daffl having the event dispatch and filtering happen as the last hooks in the hook chain I think would solve this. We would no longer need filters and then you can be gauranteed that the state of your hook is what gets sent to your dispatcher.