-
-
Notifications
You must be signed in to change notification settings - Fork 359
Conversation
LGTM! Just need to add / update some docs as well. Thanks for doing this 🎉 |
@timmyichen I have a list of small README changes, so I'll update to TypeORM in the docs in a forthcoming PR so you all can focus on the technical stuff. |
@allella I already changed it in the README |
@Zeko369 your readme changes revert some things (like contributors), might need to rebase? also, i was thinking we could add some basic docs for running migrations, etc. perhaps in a separate |
Crap, I haven't pulled from upstream, I'll get that back in. Also I'm working on a simple guide for TypeORM features and how to use them, probably will create both Wiki post and |
I like this other than how we're using BaseEntity. I find the repository method much easier and simpler to use. |
@Haxified I think that ActiveRecord pattern is simpler and easier to understand, and since the most used ORM for js/ts is sequelize a lot more people will be familiar with that pattern, also people coming from rails ❤️ |
@Zeko369 oops, didnt see this 👍. Fair enough, although I would like to see the 2 routers side by side. The thing i dislike about the repository method is how you need to run database.getRepository to get the repositories. This is easily fixed with dependency injection, and I would definately use it if this project wasn't aimed at beginners, although if you guys think dependency injection would be good then i could def put in a pr. |
So I created an example of TypeORM "repository" and "ActiveRecord" patterns. My opinion is that we should use ActiveRecord but if anyone has any opinions on why we should use repository mode and not ActiveRecord feel free to comment here Take a look at server/controllers/chapterController.ts, |
Will use ActiveRecord pattern since no one voted for RepoPattern |
fair enough, i'm happy with both and i've used both a lot |
I think that we should get this merged so that we can work on converting models from sequelize-ts to typeorm #162 , and I'll create another PR for seeds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🌟
ts-node
nonsense)