Skip to content
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

[REQ][typescript-nestjs] Collect request parameters into a single object for service methods #18475

Closed
arivanandan opened this issue Apr 24, 2024 · 0 comments · Fixed by #18476

Comments

@arivanandan
Copy link
Contributor

arivanandan commented Apr 24, 2024

Is your feature request related to a problem? Please describe.

When you have many parameters in your request, it's way easier to organize it into an object and pass it. This is known and is supported by the additionalOption useSingleRequestParameter in other generators.

Describe the solution you'd like

Implement useSingleRequestParameter

Describe alternatives you've considered

I suppose you could write a wrapper layer or use typescript-axios and build a nestjs module around it.

Additional context

There's a good reference here on the implementation for typescript-axios. Some bits are different but I'm using this to try to implement this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant