# मुख्य Takeaways — नेस्टजेएस

Source: https://www.geekswithgeeks.com/hi/nestjs/nestjs-recap

> आपको पता होने वाली essential concepts और patterns।

## NestJS triangle

**Modules** आपके app को organize करते हैं, **Controllers** requests को handle करते हैं, **Services** logic contain करती हैं। सब कुछ **Dependency Injection** से जुड़ा है।

## Request lifecycle

Middleware → Guards → Pipes → Interceptors (before) → Controller/Handler → Interceptors (after) → Filters। Correctly debug करने के लिए इस flow को सीखें।

## Database patterns

Input के लिए DTOs का उपयोग करें; data access के लिए repositories; schema के लिए migrations। Business logic को services में, queries को repositories में रखें।
