As @Guard decorator is in fact normal @Before hook that simply throws error or not, I'd consider it not needed abstraction that might be useless and confusing for some people use-cases.
It would be also very easy to create custom 'Guard' with 'Before' hook without any limitations coming from abstraction layer.
As @Guard decorator is in fact normal @Before hook that simply throws error or not, I'd consider it not needed abstraction that might be useless and confusing for some people use-cases.
It would be also very easy to create custom 'Guard' with 'Before' hook without any limitations coming from abstraction layer.
Reference: https://github.com/prismake/typegql/blob/df69cd8a95d6b671decc65aa3b3e2e383fa85a5f/src/domains/hooks/index.ts#L35