Re:From Node to Ruby on Rails
by crucialfelix on Friday December 17, 2021 @11:42AM
(#29594609)
Just that there are several generations of API. This makes TypeScript pretty much useless / impossible.
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.
Ah yes, that's definitely true, automatically generated getters and setters are a pain with sequelize. It's not impassive to have type safety though, it's just complicated.
I had to write my own types around the existing ones to get getters and setters to work.
Could you elaborate on that ?
I personally like the functional aspect of sequelize.