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
The relations are defined in the prisma.schema file, so we don't usually need them in the DTOs.
If there was an endpoint, that would return more things, for that we could create a DTO containing other fields as well.
But for now, let's just remove all fields from the DTOs (every entity.ts) that represent relations. (Like: ownedEvents: Event[] in the User DTO)
The text was updated successfully, but these errors were encountered:
The relations are defined in the prisma.schema file, so we don't usually need them in the DTOs.
If there was an endpoint, that would return more things, for that we could create a DTO containing other fields as well.
But for now, let's just remove all fields from the DTOs (every entity.ts) that represent relations. (Like:
ownedEvents: Event[]
in the User DTO)The text was updated successfully, but these errors were encountered: