News for hackers. Stuff that matters.
Re:From Node to Ruby on Rails by toqy on Thursday December 16, 2021 @12:33PM (#29580980)
I don't think I've ever had a great ORM experience with node. I inherited a project that was nest + typeorm. I've found nest pretty pleasant but typeorm is buggy and was generating way to many queries for stuff.
Re:From Node to Ruby on Rails by robwg on Thursday December 16, 2021 @01:27PM (#29581815)
This has been my experience as well. I've been happy with nestjs but haven't found an ORM that fully did what I expected. MikroORM seems to lead the way though (I know it isn't the most popular). My main issues with MikroORM could of very well been self inflicted and I ended up writing my own SQL.
Re:From Node to Ruby on Rails by moystard on Thursday December 16, 2021 @07:36PM (#29586103)
I agree that ORMs in the node world do not provide a good experience at this stage, so I mostly go with knex these days.

I had a decent experience with TypeORM after I spent time understanding how it works under the hood to optimise the queries (notably by defining the relationships better).