jonathanPretre / clean-architecture-nestjs

425 stars 131 forks source link

Questions #1

Open oliviermarechal opened 1 year ago

oliviermarechal commented 1 year ago

Hi! Thanks for jobs, it's amazing!

I have two questions, why do you not use Entity Schema in infra based from model (model from domain) Documentation

And second point, i don't understand why do you use proxy for useCase. This way of doing requires manual dependency injection for each useCase. it's so boring and a waste of time.

Thanks.

jonathanPretre commented 1 year ago

Hello and thank you! For your first question, when I did this repo we couldn't do that. But you can import model in your infra, it is not a problem. For the second question I did it to keep more consistency and for always use the same way. But yes it is not necessary.

peterkracik commented 1 year ago

@oliviermarechal I'm wondering how would you do it without the proxy, could you explain?

oliviermarechal commented 1 year ago

@peterkracik I'm trying to work on a version that would be my own, inspired by @jonathanPretre of course (my repo) I don't have comment actually, but for me, i create only one module for each bounded context, and i have an App layer for the common rules like auth. I have added the Cqrs too.

I'm a feedback taker ;-) don't hésitate. Thx