Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple repositories in the same module #38

Open
lucienbl opened this issue Jan 24, 2021 · 0 comments
Open

Multiple repositories in the same module #38

lucienbl opened this issue Jan 24, 2021 · 0 comments

Comments

@lucienbl
Copy link

Hello,

Thank you for this awesome boilerplate. However I have a question about the architecture of the repositories, right now in this project, there is a UserEntity and to perform actions on it you are using repositories. You have one UserRepository which gives access to the UserEntity in the user modules, but you have an AuthRepository in the auth module which also relies on the UserEntity.

So my question is, how would you do if you need to access other entities in the same module ?

For example, imagine there is a PostEntity, and you'd like to access it in the auth module, I don't know if my concern is clear enough, let me know if I have to provide more details.

Would you just create one repository per entity in each module instead of sharing one between all the modules, is that a good practise ?

Thanks in advance for your answer !

Best regards,
Lucien

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant