NestJS, MySQL, TypeORM Crash Course

Поділитися
Вставка
  • Опубліковано 8 вер 2024

КОМЕНТАРІ • 96

  • @ansonthedev
    @ansonthedev  Рік тому +41

    Should I do a course with MongoDB & Mongoose?

  • @alexandreluiz6182
    @alexandreluiz6182 11 місяців тому +7

    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!

  • @thecyrilcril
    @thecyrilcril 2 місяці тому

    @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!!!

  • @Charles_001
    @Charles_001 Рік тому +5

    Thank you so much for learning all over again, even though I'm still unemployed.

  • @SYEDAAMANSHERAZI
    @SYEDAAMANSHERAZI 7 місяців тому +2

    I was so lucky i got these lectures .It is really really good .
    😍😇

  • @alessandrop.6755
    @alessandrop.6755 3 місяці тому

    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 Рік тому +6

    WIthout a doubt the best guide videos on UA-cam. 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.

  • @vardgesmovsesyan3967
    @vardgesmovsesyan3967 Рік тому

    The best CRUD example in nestJS using database

  • @borknagarchile
    @borknagarchile 9 місяців тому

    Your teaching is amazing! You know what you are talking about and u are very aware of all the elements involved

  • @andrejkling3886
    @andrejkling3886 7 місяців тому +1

    Just amazing…. Thank you so much 💯

    • @ansonthedev
      @ansonthedev  7 місяців тому

      Thank you and you're welcome! :)

  • @waseemusman421
    @waseemusman421 11 місяців тому +1

    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

  • @JaTeaGee
    @JaTeaGee 11 місяців тому

    Thanks sir, because of this tutorial I can now create my own api, great job for this wonderful tutorial.

  • @marvinxu2950
    @marvinxu2950 Рік тому +3

    Thank you! Great course! I can always learn from the little details like PUT vs PATCH

  • @mamlzy
    @mamlzy Рік тому +4

    Thank you so much for teaching me about nest js, it really helped me alot!

  • @raulgarcia3614
    @raulgarcia3614 2 роки тому +9

    Whats your thoughts on Prisma?

  • @adhy612000151
    @adhy612000151 4 місяці тому

    Thanks, i just finish this course!

  • @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

  • @aymenchandra8655
    @aymenchandra8655 4 місяці тому

    Thank you for this amazing tutorial

  • @hoxlabs4038
    @hoxlabs4038 2 місяці тому

    hey loved the tutorial
    but one question why didn't you add manytomany relationship example??

  • @realtirtha
    @realtirtha Рік тому

    completed twice to understand better. it's great xD

  • @sathishkumars373
    @sathishkumars373 10 місяців тому

    lot of thanks @Anson💟
    after watched your video now i have confident in nestJS

  • @addis_ababa_university
    @addis_ababa_university Рік тому +3

    what about ManyToMany TypeORM Relations?

  • @aymenkhanfir2000
    @aymenkhanfir2000 5 місяців тому

    Nice course, Good job and thank you ❤👏

  • @PetriikVx
    @PetriikVx 10 місяців тому

    Amazing, all clear. God bless.

  • @masadamsahid
    @masadamsahid Рік тому

    The crash course is "to the point".
    I like it. Picassoooo~

  • @yonatan9867
    @yonatan9867 2 роки тому +1

    Thanks Anson! your videos are amazing!!

  • @lucduong9871
    @lucduong9871 Рік тому

    thank you so much anson, best wishes to you

  • @lingadurai5805
    @lingadurai5805 28 днів тому

    Thank you so much broooooo

  • @sakibthetech
    @sakibthetech 6 місяців тому +1

    Great!!

  • @SiciidQaran
    @SiciidQaran Рік тому +1

    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.

  • @thathsarasenanayaka8872
    @thathsarasenanayaka8872 Рік тому

    Thank you my friend

  • @curtiscrentsil2836
    @curtiscrentsil2836 6 місяців тому

    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👊💪

  • @wilschoy78
    @wilschoy78 Рік тому

    This is a lifesaver. Thanks.

  • @umrzoqtoshkentov2223
    @umrzoqtoshkentov2223 Рік тому

    Awesome course ever I watched

  • @JOJO-mc3kc
    @JOJO-mc3kc 8 місяців тому

    Thank you

  • @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

  • @umairqamar2672
    @umairqamar2672 Рік тому

    You are super dooper amazing dude !

  • @nhaccuathinh9629
    @nhaccuathinh9629 Рік тому

    Great course! Could you share the extensions you use for NestJS or your course? Thanks

  • @prateek4-yearb.tech.chemic511

    thanks man best tutorial

  • @PedroHMelo
    @PedroHMelo 9 місяців тому

    Great!

  • @user-fg6ww3bu7o
    @user-fg6ww3bu7o 5 місяців тому

    when i restart the app after creating the entity , i did not get any table in mysql .

    • @ansonthedev
      @ansonthedev  5 місяців тому

      You need to have synchronize: true in the TypeormModule config options.

  • @muhammedsinan3897
    @muhammedsinan3897 2 роки тому

    amazing class..thanks..

  • @falyarivelo7068
    @falyarivelo7068 6 місяців тому

    thanks men

  • @nivcohen7534
    @nivcohen7534 Рік тому

    Great video!

  • @danielvaleriobroncano9677
    @danielvaleriobroncano9677 Рік тому

    thanks!!! i love your video

  • @saimi03
    @saimi03 Рік тому +1

    DO you have the same thing on Many to Many?

  • @AbdulRahmanShamair
    @AbdulRahmanShamair Рік тому

    Great Content !!!

  • @linhohoang8023
    @linhohoang8023 3 місяці тому

    I want to know your snippet extension, i have tried some but it didn't do as yours in video :((

    • @linhohoang8023
      @linhohoang8023 3 місяці тому

      anyway, thank you so much for a very very useful video

  • @mohamedaminetrigui9535
    @mohamedaminetrigui9535 Рік тому

    Thanks, man, really appreciate your explaining
    .

  • @arnaudroncari2468
    @arnaudroncari2468 Рік тому

    Great video 😉

  • @14gamerx
    @14gamerx Рік тому

    Can you make a video of creating a testing database Mysql for E2E testing?

  • @EhteshamShahzad
    @EhteshamShahzad 2 роки тому

    Video on query builder in NestJS?

  • @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 👌😂

  • @nikoladzoni6432
    @nikoladzoni6432 2 роки тому

    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 2 роки тому

      fetchUserById(id: number) {
      return this.userRepository.find({
      where: { id },
      relations: {
      profile: true,
      },
      });
      }

  • @benjaminguma9962
    @benjaminguma9962 2 роки тому

    Can you share a link to the resource for using typeorm please?

  • @salahadindinsafa7657
    @salahadindinsafa7657 2 роки тому

    Thank you !!!!!!

  • @larswolter669
    @larswolter669 Рік тому

    Can't the TypeORM CLI create the database? Sorta like sequelize migrate db:drop?

  • @az910
    @az910 Рік тому

    Amazing 🎉

  • @vuxuanhuy9079
    @vuxuanhuy9079 Рік тому

    done!

  • @Cognitoman
    @Cognitoman Рік тому

    Dude how can I make my own validation for the entity ?

  • @marufhasanmunna8193
    @marufhasanmunna8193 Рік тому

    Please give custom repository example

  • @JaswanthPappala
    @JaswanthPappala Рік тому

    how open mysql in command prompt

  • @mr_ehmed
    @mr_ehmed Рік тому

    what are your themes and extension for vs code?

  • @user-br8kr3qj6y
    @user-br8kr3qj6y 3 місяці тому

    Дякую

  • @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.

  • @ihorploskodnyak1294
    @ihorploskodnyak1294 2 роки тому +1

    Can you push code to github please? Thanks

    • @ansonthedev
      @ansonthedev  2 роки тому +1

      github.com/stuyy/nestjs-typeorm-mysql-course-repository

  • @hafiz2047
    @hafiz2047 10 місяців тому

    Please make tutorial using sequelize

  • @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.

  • @anstbt
    @anstbt Рік тому

    thank you sir

  • @user-jt2zf1lc3v
    @user-jt2zf1lc3v Місяць тому

    I need sequelize and MySQL

  • @taggincrewz8855
    @taggincrewz8855 Рік тому

    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 11 місяців тому

      i am in the same error...

  • @NguyenLong-ob9fc
    @NguyenLong-ob9fc Рік тому

    after finishing this crash course I literally want to marry you

  • @bobbysihalath8993
    @bobbysihalath8993 Рік тому

    olo

  • @pythonholic
    @pythonholic 2 місяці тому +1

    @Column({
    default:()=> 'CURRENT_TIMESTAMP',
    })
    createdAt: Date;

  • @berkcan3475
    @berkcan3475 Рік тому

    repository. create doesnt create entity in sql u should use save

  • @AsToNlele
    @AsToNlele 2 роки тому +3

    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;