Question · NestJS course · Module 3: TypeORM and Databases
When to use QueryBuilder
When is it worth using QueryBuilder instead of simple repository methods in TypeORM?
Answer options
- When we need complex queries with JOIN, GROUP BY, subqueries
- Always, because it is faster
- Only when the database is empty
- Never, because it is deprecated
You can check the correct answer by solving this task in the CodeWorlds game.