I am new in TypeORM and very confused when I should use Entity manager, and repository.
As far as I know, the difference is I should specify the entity when using entity manager, but not for repository.
Not sure the performance is the same for both case.
I have used both way, but didn’t find any difference in functionality.
>Solution :
The performance is the same.
But prefer to use repository.
Each entity has its own repository which handles all operations with its own entity and repositories are more convenient to use than EntityManagers when deal with entities a lot.