Member-only story

Why you should be using TypeORM

Jesse L
2 min readAug 19, 2021

--

Hi everyone, welcome back. TypeORM is a great tool to help applications interact with databases. Let’s start with what an ORM is. ORM stands for object-relational mapping. It is a technique used to manipulate data from a database to a programming language of your choice. In TypeORM’s instance, it would be TypeScript or JavaScript. TypeORM is based off of other ORM’s such as Hibernate for Java, and Doctrine for PHP.

So why should you use TypeORM? Well TypeORM is beneficial because it lets you interact with the database without the need to write queries. I use TypeORM almost everyday and from my own testimonial, it is one of the greatest tools I have ever used. It is a relatively easy tool to learn too. Instead of having to write an SQL query that spans multiple lines, a single call of a function in TypeORM will handle the querying for you. Everything database related can be done within TypeScript or JavaScript without the need of SQL. Even for complex queries.

TypeORM is kept up to date to support the newest features that are provided by TypeScript and JavaScript. Because TypeORM is based off of previous ORM’s that came before it. It takes what was best about the previous ORM’s such as Hiberate and Doctrine, and improves where other ORM’s were lacking.

TypeORM gives you the option to use the Active Record Pattern or the Data Mapper…

--

--

Jesse L
Jesse L

Written by Jesse L

Hi, I'm a passionate technology enthusiast and lifelong learner. Beyond my technical pursuits, I'm also passionate about sharing my enthusiasm with others.

No responses yet