1. `nest g resource users` वह क्या करता है जो `nest g controller users` नहीं करता?
- यह सिर्फ़ service file बनाता है
- यह module, controller, service और DTOs एक साथ बनाता है
- यह server को watch mode में चलाता है
जवाब देखें
जवाब: यह module, controller, service और DTOs एक साथ बनाता है
`resource` पूरा feature slice बनाता है, जबकि `controller` सिर्फ़ controller बनाता है।
पाठ: NestJS CLI से सेटअप