Communication
: PostDTO should not include entire entity object
#9675
Labels
chore
code quality
communication
Pull requests that affect the corresponding module
component:Communication
exam
Pull requests that affect the corresponding module
feature
iris
Pull requests that affect the corresponding module
programming
Pull requests that affect the corresponding module
text
Pull requests that affect the corresponding module
Is your feature request related to a problem?
Currently the PostDTO includes the entire entity. This against the best pracitce in the docs and is even used as a negative example there.
Describe the solution you'd like
The DTO should only include the necessary data that has to be sent to the client. Instead of including other entities, it should include DTOs of the other entities (AnswerPosts, Reactions, ...).
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: