You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A trip has many activities, so we should reflect that relationship here. You may find this helpful
When we delete a trip or modify it, we need to ensure that all the relationships are properly updated.
For a 1-to-many relationship, deleting a trip means that all associated activities should be deleted. The native way to do it using Prisma is with referential action
This means that if you allow PUT /trips/:id to modify activities and participants, you should check whether the relationship is consistent after the API call.
Potentially updating
schema.prisma
PUT /trips/:id
to modify activities and participants, you should check whether the relationship is consistent after the API call.Originally posted by @nickbar01234 in #7 (review)
The text was updated successfully, but these errors were encountered: