Click in order · NestJS course · Module 10: Data Validation

Response Transformation Process

Arrange the steps of data transformation from the database to the API response:

Items to click

  • Client receives filtered JSON
  • Service fetches data from the database
  • ClassSerializerInterceptor applies @Exclude/@Expose
  • Controller returns an object from the service

You can check the correct answer by solving this task in the CodeWorlds game.