You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, with this structure, the parameter returned is empty (although as far as I can tell the decorator is executed and returns the correct value).
@MichalLytek appreciate the feedback. I have since changed projects, but to be fair it was on a pretty large, somewhat clunky codebase. If similar issues are not noted by other users, I think it can be closed without risks.
Describe the Bug
I have a custom parameter decorator on a field resolver applied through inheritance.
Unfortunately, with this structure, the parameter returned is empty (although as far as I can tell the decorator is executed and returns the correct value).
This is using
"type-graphql": "^1.2.0-rc.1"
To Reproduce
Abstract base class (sample):
Custom parameter decorator:
Usage:
Expected Behavior
I would expect the decorator to correctly inject the user as an argument into the field resolver.
Logs
No error. But user is defined in the decorator, undefined in the field resolver.
Environment (please complete the following information):
Ubuntu Linux 22.0.4
v14.8.2
^1.2.0-rc.1
(please check if the bug still exist in newest release)^4.5.2
Additional Context
This is transpiled and executed in dev using
ts-node
, eq.The text was updated successfully, but these errors were encountered: