DEV Community

Discussion on: Angular Is the Winner!

Collapse
 
juniordevforlife profile image
Jason F

Regarding NestJS, have you used any ORM's with it? If so, what are your thoughts?

Collapse
 
redhoodjt1988 profile image
Jonathan Reeves

I have used Mongoose and TypeGoose for MongoDB. However TypeORM is my go to since I mainly work with SQL databases. I swear by TypeORM. It can do basic connections with MongoDB but I have found TypeGoose to be a better ORM for Mongo.

Collapse
 
draer profile image
Michał Murawski

We used Typeorm with Mongo and please do not make the same mistake. Many things are not documented, and you can end up with writing a magic migration just to make some entity key unique, ex. Email :)

I would consider checking also other libraries before making a final choice.

Thread Thread
 
redhoodjt1988 profile image
Jonathan Reeves

The only issues I've ever had with TypeORM was trying to use it with MongoDB. There were some issues with the data not syncing correctly. So we had to use TypeGoose since we use TypeScript TypeGoose ended up working really well.

Collapse
 
rafaelblink profile image
Rafael Ferreira • Edited

I already had used NestJS with TypeORM and works splendidly, I've worked with MySQL and PostgreSQL.

Collapse
 
redhoodjt1988 profile image
Jonathan Reeves

That's awesome. I've used PostgrSQL and SQL Server with it so I know that it works really well with SQL databases. I don't use MySQL but good to know that if I did it works with it as well.