-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Microservices] the gRPC DTO is undefined if a param decorator is used #4851
Comments
Have you tried using |
That works. I did not see that there is a separate param decorator for a gRPC handler. However, it seems that the Is this the intended behavior? |
I'm glad it fixed your issue!
This is due to the backward compatibility. We gotta improve the documentation. Sorry for the inconvenience! |
What about metadata and call? When I use a decorator, data shows up when I use @payload() but I don't know what to use for metadata and call. |
@kamilmysliwiec @danias agree, what argument should be used for metadata and call? |
Bug Report
Current behavior
If a param decorator is applied to a parameter of a gRPC route handler, the DTO is always undefined, but the parameter the custom decorator is applied to gets populated properly.
Input Code
Expected behavior
Both the DTO and the parameter that the decorator is applied to, should be populated properly.
Environment
The text was updated successfully, but these errors were encountered: