Skip to content

Best practices for composite objects #98

Answered by themetalfleece
ivan-015 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey Ivan! Thanks for your comment.
I'm afraid that there aren't any best practices for this. I personally create functions that run queryBuilder operations inside them, like const getSongsDto = (..., which transform the object as needed. I then reuse them in my services.

Something that would improve it is eager loading relationships which is still not ready.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ivan-015
Comment options

Answer selected by ivan-015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants