Create A GraphQL API with Apollo Server V3 and MongoDB Atlas

Sdílet
Vložit
  • čas přidán 4. 06. 2022
  • Enjoying my videos? Sign up for more content here: www.coopercodes.com/
    📩 Join CodeLetter by Cooper Codes, the 3 minute tech newsletter: thecodeletter.com
    Join the Cooper Codes Community: / discord (Weekly calls, free resources, tutoring, and more!)
    In this graphql tutorial I show you how to create a GraphQL CRUD API using Apollo Server and MongoDB Atlas, this is a great stack for developing projects that scale and creating codebases that are sustainable and easy to work with. In the video we create an API where you can create recipes, edit recipes, and delete recipes. This video is great for an introduction to GraphQL, and an introduction to Apollo Server. If you are looking to increase you backend programming skills as a developer, this video is a great place to start.
    Buying stuff through my Amazon link supports the channel! amzn.to/3hK5gd0
    Business inquiry? Email thecoopercodes@gmail.com
  • Věda a technologie

Komentáře • 77

  • @obinnaosisiogu
    @obinnaosisiogu Před 2 lety +26

    THE best graphql CRUD API tutorial!
    Straight to the point, no gimmicks, easy to understand!

    • @traezeeofor
      @traezeeofor Před 2 měsíci

      Looks great. Would have been nice to also get the source code though.
      To add, this is a Backend Nodejs MongoDb Apollo Tutorial.

  • @vitorpeixoto2324
    @vitorpeixoto2324 Před 4 měsíci +1

    Almost two years later and it's still very helpful and insightful! I just upgraded to Apollo Server V4 and I preferred to work with the type module, but the foundation and, especially, your teaching are absolutely perfect. Thank you, Cooper!

  • @mansoorqaisrani5644
    @mansoorqaisrani5644 Před rokem

    One of the best tutorial videos. Glad I didn't have to watch 3hrs long tutorials just to know graphQL crud operations.

  • @gabrieldsfaria
    @gabrieldsfaria Před 8 měsíci +1

    Best tutorial in CZcams... great explanation and teaching skills! Thanks a lot!

  • @everysoof_ten2470
    @everysoof_ten2470 Před rokem

    The speed, the explanation are all so good and easy to understand, i hope you provide tutorials on other tech stacks too!

    • @CooperCodes
      @CooperCodes  Před rokem

      Glad you enjoyed! Are there any stacks in specific you’re interested in seeing?

  • @teminoah2960
    @teminoah2960 Před rokem +2

    Great teacher ! Great Coder . The exact knowledge required, thumbs UP a thousand times

  • @EDreyer
    @EDreyer Před 2 lety +5

    Better than the Apollo and Mongose documentation!

    • @CooperCodes
      @CooperCodes  Před 2 lety +1

      Thanks so much! Appreciate the comment

  • @fallest
    @fallest Před 2 lety

    This came in very handy for me Final Project. Your videos have given me many ideas and helped me develop them. Great videos, I hope your channel blows up hard ^^

    • @CooperCodes
      @CooperCodes  Před 2 lety +2

      Hopefully I blow up :). Thanks so much for the comment, glad to see the content helps.

  • @kdbrian.d3v
    @kdbrian.d3v Před rokem

    Thanks aloot i got the basics in just a split time💯💯

  • @realtalk3736
    @realtalk3736 Před 2 lety

    Thank you for that one! fast and informative!

  • @Iamhere-em2us
    @Iamhere-em2us Před rokem

    Crystal clear explanation.

  • @AminulislamSakib
    @AminulislamSakib Před rokem

    Super cool. Thank you so much. It was so helpful

  • @gmjitendra
    @gmjitendra Před 7 měsíci

    Excellent. Thank you so much.

  • @sabricharim1526
    @sabricharim1526 Před 8 měsíci

    bravo the best video at all , you the best you deserve 100000 subsciber

  • @MuhammadAbubakar-kg1bd
    @MuhammadAbubakar-kg1bd Před 6 měsíci

    Well Explained ❤

  • @Peter-sc1ru
    @Peter-sc1ru Před rokem

    yeah this really glued it all together for me this was perfect

    • @CooperCodes
      @CooperCodes  Před rokem

      Glad to hear it was valuable for you Peter, thank you for watching :)

  • @debs1991
    @debs1991 Před rokem

    Thank you so much Cooper. The best one I can get from internet!✴

    • @CooperCodes
      @CooperCodes  Před rokem

      You're welcome my guy thank you for watching

  • @relaxwithsoul1599
    @relaxwithsoul1599 Před 7 měsíci

    exact required video for me.

  • @male3399
    @male3399 Před rokem

    Thanks for this great gql tutorial

    • @CooperCodes
      @CooperCodes  Před rokem

      Thanks so much for watching! Appreciate the compliment and comment

  • @vanshshah7781
    @vanshshah7781 Před rokem

    This is really helpful 😃

  • @amitshukla2268
    @amitshukla2268 Před 10 měsíci

    You are best. ❤

  • @iamvinny
    @iamvinny Před rokem +3

    22:57 "programmers don't know much about getting dates, but that's okay" lmaooo

    • @CooperCodes
      @CooperCodes  Před rokem +1

      🤣i try to add in the lighthearted humor at times. glad you caught this one.

  • @Preetigupta-ic4cd
    @Preetigupta-ic4cd Před 9 měsíci

    awsome content

  • @vanshshah7781
    @vanshshah7781 Před rokem

    Nice tutorial

  • @tinyefuzagordon7345
    @tinyefuzagordon7345 Před rokem

    Thank you so much🤝🤝

  • @trejbal14
    @trejbal14 Před rokem

    Hi, very nice tutorial, I finally get it, thank you. 🤩

    • @CooperCodes
      @CooperCodes  Před rokem

      Glad to hear it was helpful, thank you for watching!

    • @trejbal14
      @trejbal14 Před rokem

      @@CooperCodes Are you planning to make a follow up video? Frontend using this api in react (Next.js)? It would be great.🧐😃

  • @user-mg1hj3ir7w
    @user-mg1hj3ir7w Před 9 měsíci

    best video

  • @vanshshah7781
    @vanshshah7781 Před rokem

    Best tutorial

    • @CooperCodes
      @CooperCodes  Před rokem

      Hah glad you think that :), thanks for watching

  • @obinnaosisiogu
    @obinnaosisiogu Před 2 lety +2

    Can you make a video on how to use this api to buildout the front end.

  • @waterflow8454
    @waterflow8454 Před rokem

    great job, Mr.Cooper ,could you give us a video for multiple-table(many to many) of crud? we are looking forward to you

    • @CooperCodes
      @CooperCodes  Před rokem

      I'm going to be creating an apollo server full stack project soon (next couple weeks) which should feature this. Thanks for the comment and recommendation :)

  • @artnos
    @artnos Před rokem

    i find it interesting you know how to use async but on the mongodb connect you choose to use then

  • @krupaljada6053
    @krupaljada6053 Před rokem

    that's the great tutorial
    ==========================
    I have one question: can you please tell me how can I add the array of objects or arrays at time of the creating the data? how to define the type and resolver's file?

  • @Roxas13XIII
    @Roxas13XIII Před 11 měsíci

    23:00 ooooooooof lmao

  • @psyferinc.3573
    @psyferinc.3573 Před rokem

    thank you thank you thank you thank you

    • @CooperCodes
      @CooperCodes  Před rokem

      youre welcome youre welcome youre welcome youre welcome :) hah serious tho thank you for watching

  • @alexroy4235
    @alexroy4235 Před rokem

    WoW

  • @tommycho7725
    @tommycho7725 Před 2 lety

    Hey, your videos are super helpful. Can you please make a video on how to deploy the Apollo server from the authentication video series? Thanks

    • @CooperCodes
      @CooperCodes  Před 2 lety

      Thanks for the comment :) , I'll make a video on deploying Apollo Server to Heroku soon.

    • @hehimselfishim
      @hehimselfishim Před rokem

      @@CooperCodes did you ever make the video?

  • @DanielA-ci4jx
    @DanielA-ci4jx Před rokem

    Please do on v4! Thanks

  • @rooseveltsnowden5905
    @rooseveltsnowden5905 Před 2 lety

    Thanks for the video definitely going to go through and review your other content as well. Question: As a new developer even though you explain some of the syntax and so on I still find myself getting a bit confused. Is the only way to get better to read documentation? I do a lot of leetcode and watch tutorials but don't feel like I'm improving.

    • @CooperCodes
      @CooperCodes  Před 2 lety +1

      Admittedly, a majority of my videos so far come from the perspective of putting everything together. In the future I plan to do videos on Javascript syntax. One of the main reasons I only briefly explain syntax in my project based videos is that it can really bring a 30 minute video into the 1 hour range, so the audience is definitely intermediate / those already familiar with syntax. I think a beginner can still learn a bunch though, I’d recommend looking into “async/ await functions”, “passing in object as parameter”, “module.exports and require explanation”. You’d be surprised how often these pop up when working with libraries.

    • @rooseveltsnowden5905
      @rooseveltsnowden5905 Před 2 lety

      @@CooperCodes Thank you! I look forward to the syntax videos. It can be hard to prioritize what to learn when you need a job

  • @rongzhaohua
    @rongzhaohua Před 2 lety

    great vedio, if there is subscription sample will be pereft.

    • @CooperCodes
      @CooperCodes  Před 2 lety

      Thanks for the comment :) , there is another video on my channel covering subscriptions although I may update it soon.

  • @pradeepkumar-qh5pi
    @pradeepkumar-qh5pi Před 9 měsíci +1

    where can i find these codes

  • @sahadevdahit
    @sahadevdahit Před 5 měsíci

    Relationship between models??

  • @giantbush4258
    @giantbush4258 Před 3 měsíci

    By far the most confusing way to do object destructuring. Amount is an Int why do you still need to use destructuring to get the amount variable?

  • @rezade5960
    @rezade5960 Před 2 lety

    Hey!, Cooper can you tell me the best way to upload multiple images in Mongodb by Graphql. I want to upload 4-5 images in Product table.

    • @CooperCodes
      @CooperCodes  Před 2 lety +1

      Hey there! I'll look into images on MongoDB and get started on some content for that soon :)

    • @rezade5960
      @rezade5960 Před 2 lety

      @@CooperCodes Thank you Cooper, Love your content !

  • @vaibhavdani4470
    @vaibhavdani4470 Před 2 lety

    Hey Cooper any Idea about how to get intellisense work for mongoose methods. I am not getting properties/methods shown when I am using 'dot' after my models.

    • @vaibhavdani4470
      @vaibhavdani4470 Před 2 lety

      Hello Cooper, you there ???

    • @CooperCodes
      @CooperCodes  Před 2 lety

      Hey sorry man, don’t know anything about this in particular. I’ll look into this soon

    • @vaibhavdani4470
      @vaibhavdani4470 Před 2 lety

      @@CooperCodes Thank you for your reply !! Please find some time to look into it !! It will be of great help !! In your tutorials theses methods / properties do shows. e.g. (mongoose) models.ExampleUser.find(), I want that find() or findById to be shown by intellisense.

    • @aaronabuusama
      @aaronabuusama Před rokem

      @@vaibhavdani4470 use typescript

  • @deepkodes4434
    @deepkodes4434 Před 3 měsíci

    can u please provide the code , great video tho

  • @damindadineshimaduwagamage9044

    So, when you add GraphQL, you do not need any routes? isn't it? take, for example, a MERN app.

  • @craxissx8283
    @craxissx8283 Před rokem

    24:12, don't use ._doc, use .toObject method

  • @offgridvince
    @offgridvince Před rokem +1

    They're on to V4 already... V3 will be deprecated in Oct, There's already breaking changes

    • @CooperCodes
      @CooperCodes  Před rokem +1

      Will be making an updated video soon doing CRUD with V4. I have a subscriptions video that uses V4 if that helps you at all. Best of luck!

    • @offgridvince
      @offgridvince Před rokem +1

      @@CooperCodes Thank you! Yes, it'll help. I'm a newly self taught web dev. Every bit helps...

  • @iamvalenci4
    @iamvalenci4 Před rokem

    Bro, I am very upset that I don't know how to specify the collection I want to handle and let Mongoose guess what collection I want to handle, #$@$#%$#%$%#%$#$%#%$#

  • @wadanemacho
    @wadanemacho Před 11 měsíci

    all dry stuff no BS