DEV Community

Discussion on: What NodeJS SQL Query Builder/ORM should I use for my Postgres DB, and why?

Collapse
voodooattack profile image
Abdullah Ali

You should definitely look into TypeORM. It's the strongest Node.js ORM on the market right now, in my opinion.

It's also well-documented and if you use TypeScript, you're in for a treat. Simply because you can define your models using decorators directly in the source code. You'll also get type hinting and strict type checking to boot.

Also, not to toot my own horn or anything, but if you're using GraphQL, check out typeorm-loader, which is something I wrote that implements the functionality of Facebook's dataloader (and more!) on top of TypeORM. It's GraphQL and database-schema aware, so it won't cause any under(or over)-fetching.