NestJs, TypeORM and MySQL

I have been using Nest with MySQL. As ORM I used TypeORM for every project. But definetly I've hit some road blocks on TypeORM and MySQL. I think TypeORM is the best choice for ORM in node as world as of now , but apparently if you use JSON column for…

NestJs validation constraints

If you're coming from Laravel, you're probably used to simple validation rules that ease developers life with confirmed rule. On NestJs there is no such rules. On top of that to make NesJs more flexible it uses class-validator package which you can add to your project by running npm install…

NestJs Microservice exception handling

Microservices is this concept of breaking up a monolyth into a smaller pieces to make project more manageable. But todays tip is about how to handle errors in NestJs microservice architecture. For an example lets use Redis as a proxy between other microservices instead of letting each microservice talk to…

Nest.js migrations in TypeORM

I see that from time to time developers who are new to the NestJS and are using TypeORM are having a problems with creating a database migrations. Let’s clear one thing right away. The TypeORM command line tool currently is not compatible with a NestJS and you can’t…