Question · NestJS course · Module 3: TypeORM and Databases

The @Entity decorator

What does the @Entity() decorator above a TypeScript class mean?

Answer options

  • The class is a controller
  • The class is a service
  • The class represents a table in the database
  • The class is a module

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