P
Prisma2mo ago
EliZ

Update Parent Model's updateAt

Whats the best way to handle updating the Parent Models (one) updateAt field when the Child Model (many) has a CRUD operation performed on it. Is there any way to handle this without manually running another mutation?
3 Replies
Prisma AI Help
Prisma AI Help2mo ago
You decided to hold for human wisdom. We'll chime in soon! Meanwhile, #ask-ai is there if you need a quick second opinion.
EliZ
EliZOP2mo ago
I've created a Prisma Client Extension to handle this, is this the best approach?
Nurul
Nurul4w ago
Yes, in my opinion creating client extension is the best approach

Did you find this page helpful?