NeekoNeeko
PPrisma
•Created by NeekoNeeko on 1/23/2025 in #help-and-questions
If I extend create, is there a way to extend createMany as well?
Okay, thank you!
7 replies
PPrisma
•Created by NeekoNeeko on 1/23/2025 in #help-and-questions
If I extend create, is there a way to extend createMany as well?
Hi! So the use case is that whenever someone makes a write update to a model (call it
User
), we want to add a row to another table (call it UserLog
) to log that change, i.e., the UserLog would be something like "User X was UPDATED with these changes at 4:45pm"7 replies
PPrisma
•Created by NeekoNeeko on 1/23/2025 in #help-and-questions
If I extend create, is there a way to extend createMany as well?
Additionally I'd prefer to not have to modify
create
, createMany
and createManyAndReturn
if possible7 replies