Hi, this is more of a general question related to OOP / multiple frameworks.
Suppose I have module A and module B. Module A is tied to cinemas.
Module B is tied to movies.
Both modules have one service. Both cinema and movie have their TypeORM entity and TypeORM repository.
Now, suppose inside the movie service, you need to get data from a specific cinema.
Would you inject TypeORM repository or would you inject cinema service that looks up the specific cinema?
From my point of view, I would inject the repository itself and would do the specific find in the method in the movie service itself.
Injecting the cinema service calling the method there implemented that is basically a wrapper over the repository itself, would create a tight coupling between the services, and would just complicate things.
What's your take? Thanks