The lack of good documentation is painful and often treats me like I don't already know the concepts involve.
Sequelize isn't as intuitive as Django's ORM either imo.
Turned out to be painfully slow to iterate. The ORM needs constant attention to join or prefetch queries.
Switched to Prisma and it's an utter joy. If the typescript has no errors then there won't be runtime errors.
Sequelize is a multi generational mess. It's a huge time waster.
Could you elaborate on that ?
I personally like the functional aspect of sequelize.
Working with Prisma: if it compiles (and you don't have a business logic error), then you usually won't get any runtime sql errors.
You don't have type safety with sequelize.
I had to write my own types around the existing ones to get getters and setters to work.
I haven’t checked out Prisma. Thanks for the tip.
Prisma has a great API for this, and it's easy to tune. By default is prefetches and selects related even several levels of joins deep.
Types can be checked with mypy: http://www.mypy-lang.org/
For Django, there are these two typing packages:
- https://pypi.org/project/django-stubs
- https://pypi.org/project/django-types
I can't vouch for them, but it looks like they're being actively developed.
I like the idea of full-stack JavaScript (or TypeScript), but last time I tried to use Node for a back end, I couldn't find anything that compared to libraries/frameworks like Django, Rails, SQLAlchemy, etc.