KinglyEndeavors
PPrisma
•Created by KinglyEndeavors on 7/3/2024 in #help-and-questions
Best Practices for Error Handling When Updating Bridge Table (Composite IDs)
What are the best practices when it comes to going about error handling for a function that is updating a bridge table?
Is it necessary to verify to check if the two records that comprises its composite ID (e.g.,
facilityUuid
for the Facility
model and workerUuid
for the Worker
model) before updating it? Or will it check for that on its own as a consequential result?
Here's are some snippet examples:
16 replies