NestJS · Junior · Question 43 of 75
Where should business logic live in a Nest app?
- 1In DTOs
- 2In
main.ts - ✓Correct answer: In services (providers), not in controllers
Explanation
Services can be reused by several controllers, scheduled jobs or message handlers, and are easy to unit test.