Canonical way of using multiple repositories in a service #558
Unanswered
suspiciousRaccoon
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Have you found a decent workaround? I think there is a strong use case for this, a service should not be restricted to a single repository since it serves as the business logic layer which in most cases will span across multiple repositories. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi! ฅ^•ﻌ•^ฅ
The service docs mention that services can handle operations involving multiple repositories, however, I wasn't able to find an example in the docs or the litestar-fullstack application where this is done, and the service code doesn't really look like it was made with multiple repos in mind.
What is the canonical way of having a service with multiple repositories? Or is this something that isn't supported and should be done elsewhere? Like maybe wrapping services inside a normal class?
Beta Was this translation helpful? Give feedback.
All reactions