[ $davids.sh ] โ€” david shekunts blog

๐Ÿ™ Give up TypeORM, in favor of โ€ฆ ๐Ÿ™

# [ $davids.sh ] ยท message #137

๐Ÿ™ Give up TypeORM, in favor of โ€ฆ ๐Ÿ™

I have a lot to say about ORM in general, and especially on Node.js...

I've worked with ORM on Golang, PHP, Python, C#, so I have something to compare.

I'll start by immediately stating my position: TypeORM is utter garbage.

Why, I explain in the article:

Link to article

And further, I will write a bunch of articles on the topic of ORM, because my team and I have decided to choose a new one for all our projects and I will have something to tell you.

P.S.

Prisma is also not a gift, but definitely better than TypeORM.

#db #postgresql #mongodb #nodejs #typescript #orm

  • @ Igor IT-K Malinkin ยท # 252

    Prism, little prism โค๏ธ

  • @ Arsen IT-K Arakelyan ยท # 253

    What about Bookshelf?
    It's an ORM built on top of the Knex.js query builder.

  • @ [ $davids.sh ] ยท # 254

    I worked with it once, and now after checking the docs, I see the following issues:

    • No native TypeScript support (even Knex has it, how did they manage to...)
    • No introspection
    • No description of table fields and their types
    • Only works via Active Record

    That's enough for me to avoid using it.

    If you really want Knex, then Objection.js is better (though it has its own problems too).