nestjs / schematics

Nest architecture element generation based on Angular schematics 🎬
https://nestjs.com
MIT License
383 stars 207 forks source link

Generate CQRS Command/Query resource #1790

Closed horlaarsco closed 3 months ago

horlaarsco commented 3 months ago

Is there an existing issue that is already proposing this?

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

I started using CQRS recently on nestjs but when I need to generate a new Command or Query. I would have to create the file Command/Query and handler file, add the Command/Query to the module its in manually and then input the Command/query boilerplate I need to get started. As the project grows fast, it becomes repetitive and takes a little extra time.

Describe the solution you'd like

Being able to generate Command/Query automatically the way we currently have for Resources/Controller etc

Teachability, documentation, adoption, migration strategy

No response

What is the motivation / use case for changing the behavior?

I think this would make development faster and easier.

kamilmysliwiec commented 3 months ago

Please search through some of our old issues on this (this has been discussed several times in the past).