Тёмный

NestJS, MySQL, TypeORM Crash Course 

Anson the Developer
Подписаться 51 тыс.
Просмотров 92 тыс.
50% 1

Covering the basics from creating, reading, updating, and deleting data from our MySQL database, all the way to one-to-one relationships and one-to-many and many-to-one. By the end of this video, you will become more comfortable with working with TypeORM entities and repositories to build persistent applications!
Code: github.com/stuyy/nestjs-typeo...
Support the Channel:
Become a Member: ru-vid.com...
Become a Patreon: / stuyy
Buy me a Coffee: ko-fi.com/anson
Donate on Streamlabs: streamlabs.com/ansondevacadem...
Donate on PayPal: paypal.me/ansonfoong
Connect with me:
Twitter: / ansonthedev
Discord: / discord
GitHub: github.com/stuyy
Twitch: / stuy

Хобби

Опубликовано:

 

11 авг 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 93   
@ansonthedev
@ansonthedev Год назад
Should I do a course with MongoDB & Mongoose?
@houssincarnelian9562
@houssincarnelian9562 Год назад
can you make a 2fa with nestjs how to send email verification after user register
@adityafitriansyah97
@adityafitriansyah97 Год назад
Letsgo
@szymon2806
@szymon2806 Год назад
Yes!
@SystemDV
@SystemDV 11 месяцев назад
Yea!
@TruongNguyen-ix1mr
@TruongNguyen-ix1mr 10 месяцев назад
yes
@thecyrilcril
@thecyrilcril 3 дня назад
@ansonthedev thanks for this tutorial, I 've been a laravel developer for 6 years and going through your Nes'tJS tutorials have been a breeze, Thank you again!!!
@alexandreluiz6182
@alexandreluiz6182 9 месяцев назад
30 minutes of this tutorial and I was able to finally implement the typeorm in my nestjs backend. The explanation is very simple to understand. Thank you, very much!
@Charles_001
@Charles_001 Год назад
Thank you so much for learning all over again, even though I'm still unemployed.
@mamlzy
@mamlzy Год назад
Thank you so much for teaching me about nest js, it really helped me alot!
@jairocket
@jairocket Год назад
Thank you very much for this tutorial! I had a lot of fun watching this video and the crash course and sure will be pretty helpful on my job
@yonatan9867
@yonatan9867 Год назад
Thanks Anson! your videos are amazing!!
@SYEDAAMANSHERAZI
@SYEDAAMANSHERAZI 5 месяцев назад
I was so lucky i got these lectures .It is really really good . 😍😇
@vardgesmovsesyan3967
@vardgesmovsesyan3967 Год назад
The best CRUD example in nestJS using database
@borknagarchile
@borknagarchile 6 месяцев назад
Your teaching is amazing! You know what you are talking about and u are very aware of all the elements involved
@ansonthedev
@ansonthedev 6 месяцев назад
Thank you very much!
@alessandrop.6755
@alessandrop.6755 Месяц назад
Hey Anson, I'm really enjoying your NestJS tutorials, I can't find many videos with similar quality. So far you've been able to explain how to best use Nest in many contexts, I've already watched how you implemented it with Mongoose and MongoDB, and after this I'll watch how to implement GraphQL. You are great, thank you for your work and your content. 💯
@AliAliOxenFree
@AliAliOxenFree Год назад
WIthout a doubt the best guide videos on RU-vid. I have watched many other content creators and tried to follow along, none offer explanations like this guy. If i ever get good enough to earn a living doing this, it would be, to a large extent, due to these videos.
@marvinxu2950
@marvinxu2950 Год назад
Thank you! Great course! I can always learn from the little details like PUT vs PATCH
@JaTeaGee
@JaTeaGee 9 месяцев назад
Thanks sir, because of this tutorial I can now create my own api, great job for this wonderful tutorial.
@waseemusman421
@waseemusman421 9 месяцев назад
Anson, your way of teaching and explaining core concepts is amazing. if youtube has million thumbs up option then Definitly i will give you millions of thumbs up. Just keep it up. Also did subscribe your channel
@lucduong9871
@lucduong9871 Год назад
thank you so much anson, best wishes to you
@PetriikVx
@PetriikVx 7 месяцев назад
Amazing, all clear. God bless.
@SiciidQaran
@SiciidQaran Год назад
Thanks for sharing, I have one question. How can I call stored procedures instead of using entities. I have developed the database and its procedures first. Now I want to call those stored procedures using nestjs. any help please. Thanks and regards.
@adhy612000151
@adhy612000151 Месяц назад
Thanks, i just finish this course!
@aymenkhanfir2000
@aymenkhanfir2000 3 месяца назад
Nice course, Good job and thank you ❤👏
@wilschoy78
@wilschoy78 11 месяцев назад
This is a lifesaver. Thanks.
@andrejkling3886
@andrejkling3886 5 месяцев назад
Just amazing…. Thank you so much 💯
@ansonthedev
@ansonthedev 5 месяцев назад
Thank you and you're welcome! :)
@masadamsahid
@masadamsahid Год назад
The crash course is "to the point". I like it. Picassoooo~
@umrzoqtoshkentov2223
@umrzoqtoshkentov2223 Год назад
Awesome course ever I watched
@raulgarcia3614
@raulgarcia3614 Год назад
Whats your thoughts on Prisma?
@muhammedsinan3897
@muhammedsinan3897 Год назад
amazing class..thanks..
@thathsarasenanayaka8872
@thathsarasenanayaka8872 Год назад
Thank you my friend
@samrat131
@samrat131 Год назад
hi, can we achieve one-to-many/many-to-one relation using TypeORM: select table1.*, table2.* from table1 left join table2 on table1.pk_id=table2.fk_id and table1.status=1 , here main concern is to join table with multiple condition , thanks
@nhaccuathinh9629
@nhaccuathinh9629 10 месяцев назад
Great course! Could you share the extensions you use for NestJS or your course? Thanks
@realtirtha
@realtirtha 10 месяцев назад
completed twice to understand better. it's great xD
@nivcohen7534
@nivcohen7534 Год назад
Great video!
@AbdulRahmanShamair
@AbdulRahmanShamair Год назад
Great Content !!!
@aymenchandra8655
@aymenchandra8655 2 месяца назад
Thank you for this amazing tutorial
@ansonthedev
@ansonthedev 2 месяца назад
You are welcome!
@umairqamar2672
@umairqamar2672 Год назад
You are super dooper amazing dude !
@benjaminguma9962
@benjaminguma9962 Год назад
Can you share a link to the resource for using typeorm please?
@prateek4-yearb.tech.chemic511
thanks man best tutorial
@danielvaleriobroncano9677
@danielvaleriobroncano9677 Год назад
thanks!!! i love your video
@sathishkumars373
@sathishkumars373 8 месяцев назад
lot of thanks @Anson💟 after watched your video now i have confident in nestJS
@saimi03
@saimi03 Год назад
DO you have the same thing on Many to Many?
@nikoladzoni6432
@nikoladzoni6432 Год назад
Great content but how would we add relations in find one by and then pass the id so that we could get a specific user ? :)
@nikoladzoni6432
@nikoladzoni6432 Год назад
fetchUserById(id: number) { return this.userRepository.find({ where: { id }, relations: { profile: true, }, }); }
@arnaudroncari2468
@arnaudroncari2468 Год назад
Great video 😉
@hoxlabs4038
@hoxlabs4038 22 дня назад
hey loved the tutorial but one question why didn't you add manytomany relationship example??
@sakibthetech
@sakibthetech 4 месяца назад
Great!!
@salahadindinsafa7657
@salahadindinsafa7657 Год назад
Thank you !!!!!!
@addis_ababa_university
@addis_ababa_university Год назад
what about ManyToMany TypeORM Relations?
@mohamedaminetrigui9535
@mohamedaminetrigui9535 Год назад
Thanks, man, really appreciate your explaining .
@14gamerx
@14gamerx Год назад
Can you make a video of creating a testing database Mysql for E2E testing?
@mr_ehmed
@mr_ehmed Год назад
what are your themes and extension for vs code?
@vuxuanhuy9079
@vuxuanhuy9079 Год назад
done!
@EhteshamShahzad
@EhteshamShahzad Год назад
Video on query builder in NestJS?
@PedroHMelo
@PedroHMelo 7 месяцев назад
Great!
@JOJO-mc3kc
@JOJO-mc3kc 6 месяцев назад
Thank you
@ansonthedev
@ansonthedev 6 месяцев назад
You're welcome
@Cognitoman
@Cognitoman Год назад
Dude how can I make my own validation for the entity ?
@az910
@az910 Год назад
Amazing 🎉
@linhohoang8023
@linhohoang8023 Месяц назад
I want to know your snippet extension, i have tried some but it didn't do as yours in video :((
@linhohoang8023
@linhohoang8023 Месяц назад
anyway, thank you so much for a very very useful video
@user-fg6ww3bu7o
@user-fg6ww3bu7o 3 месяца назад
when i restart the app after creating the entity , i did not get any table in mysql .
@ansonthedev
@ansonthedev 3 месяца назад
You need to have synchronize: true in the TypeormModule config options.
@falyarivelo7068
@falyarivelo7068 4 месяца назад
thanks men
@marufhasanmunna8193
@marufhasanmunna8193 Год назад
Please give custom repository example
@larswolter669
@larswolter669 Год назад
Can't the TypeORM CLI create the database? Sorta like sequelize migrate db:drop?
@ansonthedev
@ansonthedev Год назад
I’m sure it can
@EuropeanLord
@EuropeanLord Год назад
Followed it 1:1 and when trying to use postman I get MySQL DB error "QueryFailedError: Field 'username' doesn't have a default value". I send both username and password and Postman returns 201 but nothings get written into db. Can't run POST in Postman again due to "Error: socket hang up" and have to restart the whole nest so its hard to debug. Any ideas whats wrong? Im sending username/password in Postman properly but it tries to save DEFAULT values into the db. [SOLVED] Data type in Postman was set to "raw" but dropdown next to it was set to "text" instead of "JSON" :) So basically POSTMAN was sending data in a wrong format. All good, thank you for a great tutorial.
@PedroHMelo
@PedroHMelo 9 месяцев назад
goat
@JaswanthPappala
@JaswanthPappala Год назад
how open mysql in command prompt
@codingneko
@codingneko Год назад
I am pretty sure, it's bad sql practice (according to conventions) to use pluralized names for tables, but it won't make your application crash, so seems good 👌😂
@Easyman01
@Easyman01 Год назад
GREAT contents!!!! Thank you so much!! I have a question. How can I create save a POST array of images upload to amazon S3 into MYSQL images table? How would the Repository file look like? I had something going on, but my issue is, whenever I upload like 2 images it saves the first image twice in my DB. I'm tried images.forEach() and images.map(). still the same issue. Your example on here talked about "post" and that's a POST object, but my case is POST array.
@curtiscrentsil2836
@curtiscrentsil2836 4 месяца назад
please add time stamps, i use your video as a reference and it is always difficult to look for what i want, please add time stamps, thanks for your amazing work👊💪
@taggincrewz8855
@taggincrewz8855 10 месяцев назад
Hi Brother , your video is very great and is easy to understand. But I encountered a huge issue when running POST request. It was the very first request at 30:54 of video . Please help me provoiding any suggestion to fix error below as I could not find solution at all. /Users/aashishsapkota/Desktop/nestjs-mysql/src/driver/mysql/MysqlQueryRunner.ts:222 new QueryFailedError(query, parameters, err), ^ QueryFailedError: Field 'username' doesn't have a default value I even tried setting default value to null in our entities but that would only push null username and password. Even if I provided new one. I also tried disabling safe mode but that did not worked at all . I know you might be busy but I could really appreciate your help on this if possible.
@PedroHMelo
@PedroHMelo 9 месяцев назад
i am in the same error...
@ihorploskodnyak1294
@ihorploskodnyak1294 Год назад
Can you push code to github please? Thanks
@ansonthedev
@ansonthedev Год назад
github.com/stuyy/nestjs-typeorm-mysql-course-repository
@hafiz2047
@hafiz2047 8 месяцев назад
Please make tutorial using sequelize
@user-br8kr3qj6y
@user-br8kr3qj6y Месяц назад
Дякую
@NguyenLong-ob9fc
@NguyenLong-ob9fc Год назад
after finishing this crash course I literally want to marry you
@bobbysihalath8993
@bobbysihalath8993 Год назад
olo
@anstbt
@anstbt 11 месяцев назад
thank you sir
@berkcan3475
@berkcan3475 Год назад
repository. create doesnt create entity in sql u should use save
@pythonholic
@pythonholic 12 часов назад
@Column({ default:()=> 'CURRENT_TIMESTAMP', }) createdAt: Date;
@AsToNlele
@AsToNlele Год назад
Really enjoying this whole NestJS playlist, thank you for making it! I've found in the docs that for the "createdAt" we can use @CreateDateColumn() createdAt: Date;
Далее
NestJS, GraphQL & TypeORM Tutorial
2:22:44
Просмотров 14 тыс.
NestJS Tutorial For Beginners - Learn NestJS
51:49
Просмотров 7 тыс.
TypeORM Crash Course - TypeScript & Node ORM
2:01:23
Просмотров 96 тыс.
Learn Drizzle ORM in 13 mins (crash course)
14:00
Просмотров 22 тыс.
Learn Nest.js from Scratch by building an API
1:09:06
Просмотров 539 тыс.
Prisma Vs. TypeORM Vs. Sequelize | Which is Better?
12:44
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Просмотров 72 тыс.
I Have A New Favorite Database Tool
5:46
Просмотров 116 тыс.
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
0:27
Прошёл босиком 3600 метров
0:59
Просмотров 1,3 млн