Bird
0
0

What is the primary benefit of using migrations in a NestJS project?

easy📝 Conceptual Q1 of 15
NestJS - Database with TypeORM
What is the primary benefit of using migrations in a NestJS project?
ATo keep track of database schema changes over time
BTo speed up API response times
CTo automatically generate frontend components
DTo manage user authentication
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of migrations

    Migrations help manage changes to the database schema in a controlled way.
  2. Step 2: Identify the main benefit

    They allow developers to track and apply schema changes consistently across environments.
  3. Final Answer:

    To keep track of database schema changes over time -> Option A
  4. Quick Check:

    Migrations purpose = Track schema changes [OK]
Quick Trick: Migrations track database changes, not app speed or UI [OK]
Common Mistakes:
  • Confusing migrations with performance optimization
  • Thinking migrations generate frontend code
  • Assuming migrations handle authentication

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More NestJS Quizzes