Bird
0
0

Which Prisma method is used to update a record partially in NestJS?

easy📝 Conceptual Q2 of 15
NestJS - Database with Prisma
Which Prisma method is used to update a record partially in NestJS?
Aprisma.model.modify()
Bprisma.model.update()
Cprisma.model.patch()
Dprisma.model.change()
Step-by-Step Solution
Solution:
  1. Step 1: Recall Prisma's update method

    Prisma uses update() to modify existing records partially or fully.
  2. Step 2: Verify method names

    Only update() is a valid Prisma method for updating records.
  3. Final Answer:

    prisma.model.update() -> Option B
  4. Quick Check:

    Update method = prisma.model.update [OK]
Quick Trick: Use update() to change existing records [OK]
Common Mistakes:
  • Using non-existent methods like modify(), patch(), or change()
  • Confusing update() with create()

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More NestJS Quizzes