You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 oneUserRepository
which gives access to theUserEntity
in theuser
modules, but you have anAuthRepository
in theauth
module which also relies on theUserEntity
.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 theauth
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
The text was updated successfully, but these errors were encountered: