-
Controller describes the endpoints & grabs the params from the url.
- then calls a service method, that’s where we handle anything to do with our data.
-
why is it recommended for the controller to use a DTO while a service can use an interface?
- Nest recommends for your DTO to be a regular
class
& not an interface. the docs explain why here.
- Nest recommends for your DTO to be a regular
in our class, we need a constructor, cause we’re using dependency injection.
- difference between a model & a schema btw? where each is used