Back to Browse

Nest JS Database Interaction Patterns - Data Formatter vs Active Record Patterns | 2023

345 views
Dec 23, 2023
14:40

In this video we will understand the two concepts to interact with Database in Nest JS. TypeORM is wisely ORM used in Nest.js to interact with database. There are two ways to interact - Active Records and Data Formatter. Here we will easily understand in seeing project and using Postman to see realtime demo. πŸ”— Links: Doc: https://bit.ly/3NEka1d Official Documentation: https://github.com/typeorm/typeorm/blob/master/docs/active-record-data-mapper.md Data Mapper Methods: https://orkhan.gitbook.io/typeorm/docs/repository-api ⏰ Key Moments: 00:00 - Introduction 00:42 - Understanding TypeORM? 02:02 - Why use TypeORM or any other ORM? 02:34 - Undetstanding Nest JS Code Flow - Module, Controller, Service, Repository 03:22 - Pattern 1: Active Record (of Type ORM) 05:46 - Observing Nest Code Project in VS Code 08:38 - Pattern 2: Data Mapper (of Type ORM - Mostly Used) 09:48 - Observing Nest Code Project in VS Code 11:53 - Using Postman to use this pattern Create Task, Get Task in PostgreSQL DB 13:41 - Wrap Up Connect with me πŸ‘‹ LINKEDIN β–Ί https://www.linkedin.com/in/amirmustafa1 INSTAGRAM β–Ί https://www.instagram.com/aamir__mustafa #nestjs #typeorm #activerecords #datamapper #postgresql

Download

0 formats

No download links available.

Nest JS Database Interaction Patterns - Data Formatter vs Active Record Patterns | 2023 | NatokHD