Learn GraphQL In 40 Minutes

Sdílet
Vložit
  • čas přidán 1. 03. 2019
  • GraphQL is the hottest technology when it comes to server side APIs for good reason. It is incredibly fast to develop with, and it makes building a front-end painlessly easy. In this video I am going to be teaching you what GraphQL is, why it is important, why it is better than REST, and then we will be walking through an entire Node.js and Express GraphQL API for books and authors. By the end of this video you will have a complete understanding of what GraphQL is and how to use it.
    Code For This Video:
    github.com/WebDevSimplified/L...
    Twitter:
    / devsimplified
    GitHub:
    github.com/WebDevSimplified
    CodePen:
    codepen.io/WebDevSimplified
    #GraphQL #WebDevelopment #JavaScript

Komentáře • 691

  • @WebDevSimplified
    @WebDevSimplified  Před 5 lety +266

    I really enjoyed making this GraphQL video, and would love to make more videos about learning a single topic in one video. Let me know if you have any topics that you would want me to cover in a similiar manner.

    • @AshishKumar-oe5ly
      @AshishKumar-oe5ly Před 5 lety +1

      thanks for making such a wonderful video on graph QL. Could you please make some tutorial on integrating GraphQL with Sails-Mongo application?

    • @johnblyberg4801
      @johnblyberg4801 Před 5 lety +6

      Your videos are fantastic because you get right in to it and provide great, real-world applications for the code you're writing. Thank you! My request would be a video or a series of videos on securing your API with JWT and other approaches for authentication, CSRF protection, etc. Thanks!

    • @WebDevSimplified
      @WebDevSimplified  Před 5 lety +6

      Thank you for the suggestions. JWT is a topic I want to cover in the nearish future.

    • @StephanDuToit
      @StephanDuToit Před 4 lety +1

      Web Dev Simplified hi there, have you been able to create this tut yet? Love your tutorials!

    • @sundeepparuchuru
      @sundeepparuchuru Před 3 lety +3

      Can you please make tutorial on apollo server with node js. Couldn't able to find much on web.

  • @dougiehawes916
    @dougiehawes916 Před 3 lety +733

    const expressGraphQL = require("express-graphql");
    -- should be --
    const { graphqlHTTP } = require("express-graphql");
    I kept getting an error till I looked up the documentation

    • @vivek8270
      @vivek8270 Před 3 lety +2

      Thanks man.

    • @shujabakhtiar8139
      @shujabakhtiar8139 Před 3 lety +2

      thanks man that helped

    • @iamlande3979
      @iamlande3979 Před 3 lety +5

      omg thank u, half an hour I was trying to figure out what is wrong

    • @FalseDev
      @FalseDev Před 3 lety +4

      Great help, using typescript would have saved some time, and it's because they've make some breaking changes

    • @sahelee1
      @sahelee1 Před 3 lety +64

      yes. alternatively :
      const expressGraphQL = require('express-graphql').graphqlHTTP
      require('express-graphql') returns an object with a property called graphqlHTTP that is the function you want to call.

  • @txdba
    @txdba Před 3 lety +96

    The clarity of your voice is amazing. I'm 60 years old and don't hear well and it is rare I hear speech readily. Concerning the tool, the required prep is huge. This tool is a gift for contractors that charge by the hour if it is meant to be a replacement for SQL. It seems to be much more that SQL. Pardon my comparison to SQL, but it has been and still is the query tool of my career. Thank you.

    • @Jb67912
      @Jb67912 Před rokem +1

      It’s called using a quality microphone

  • @its_just_me_
    @its_just_me_ Před 4 lety +175

    The best part in the video is in between 0:00 to 39:43

  • @Failedenterprises
    @Failedenterprises Před 4 lety +97

    mans straight out of the twilight saga

  • @JuanGutierrez-qg4zr
    @JuanGutierrez-qg4zr Před rokem +59

    All these channel videos are gems. By the way, if somebody else is facing the error "TypeError: expressGraphQL is not a function" just replace the import from
    const expressGraphQL = require("express-graphql");
    to
    const { graphqlHTTP } = require("express-graphql");

  • @ziyoshams
    @ziyoshams Před 4 lety +65

    This is excellent. I usually see others jumping right into Apollo, which has lots of abstraction. But this tutorial shows more lower level hands on approach of graphQL.

  • @arnoldtanjunhan
    @arnoldtanjunhan Před 3 lety +10

    Didn't know anything about GraphQL, so glad this was the first video I watched. Such a great exposition. Thanks!

  • @ackmanx
    @ackmanx Před 3 lety +5

    I listened to this during a long drive home and it was perfect! Even without seeing the video it was easy to follow along

  • @ellie_ellie_ellie
    @ellie_ellie_ellie Před 4 lety +7

    Excellent tutorial!!! Very clear & easy to understand!!! As a first-time GraphQL learner, I could follow all the steps throughout the video. Thanks a lot! Subscribed to your channel :)

  • @matthewzamat3331
    @matthewzamat3331 Před rokem +4

    Seriously, thank you. You did a great job explaining a fairly complex topic, and made it really make sense in the context of the application you built. Great job, and please do keep making these types of videos. I think I speak for everyone when I say thank you!

  • @andrewbrower4158
    @andrewbrower4158 Před rokem +2

    This video walkthrough explains GraphQL in such a crystal-clear way. Not surprised to see high-quality content coming from WDS. Thanks for this excellent tut

  • @mind-blowing_tumbleweed
    @mind-blowing_tumbleweed Před rokem +1

    Been C# enterprise dev for 4 years and embarrassed I didn't learn about it earlier. The tutorial is excellent and worth watching every minute. The code, remarks, examples, overall structure is just great.

  • @ammulutrips4657
    @ammulutrips4657 Před 4 lety +4

    This is the best video on GraphQL I have ever seen. And you have explained everything in a crisp and clear way...Thanks a lot for sharing your knowledge..You are the best mentor .I'm able to learn and start using it. Thanks a lot.

  • @stevestizzy
    @stevestizzy Před 2 lety +3

    Great explanation mate.
    Was looking for a simple video tutorial to understand the basics of GraphQL, because I was bored to read any written tutorials at the moment,
    and this was such a great video.
    Thanks

  • @billybob7970
    @billybob7970 Před rokem +1

    woah, after painfully struggling though setting up and configuring a REST API, this has just blown my mind. Great presentation packed with a lot of very useful content

  • @CliffordFajardo
    @CliffordFajardo Před 4 lety +25

    Really awesome introduction. The setup of an in memory datastore was great as it made learning the concepts easier.
    A lot people fail to mention that one of the big costs of GraphQL is for backend engineers, not the UI engineers querying the data though 😃
    Still a good technology to be aware of.

    • @WebDevSimplified
      @WebDevSimplified  Před 4 lety +17

      Thank you so much. I'm glad you appreciated the in memory storage since a lot of people complain that makes the video useless when I feel that adding in a full db makes the video way too long.

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

      I can see the one drawback of GraphQL. While being efficient in terms of clientserver bandwidth it's inefficient in terms of serverdatabase bandwidth. With GraphQL you either return every single property from the database to a server and then server does filtering or, I think, there should be some libraries that move that filtering logic to a database side. The second approach would be a way efficient in terms of a database load. So, using JSON objects in this video is great but doesn't make accent on the challenge with serverdatabase communication.

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

    Amazingly made video. In 40 mins you have added almost everything that's required to develop an enterprise level apps.

  • @umerfarooq3121
    @umerfarooq3121 Před 3 lety +1

    Hi Kyle,
    I'm very very thankful to you for making this tutorial. After watching the first time I was scarring from GraphQL but I take it as a challenge and watch you Tutorial again and again So now I'm comfortable with GraphQL.
    Thank you.

  • @awabelmahe9700
    @awabelmahe9700 Před 3 lety +53

    Best teacher ever. Straight to the point, and not a single second wasted. Thank you very much for this great video.

    • @Jb67912
      @Jb67912 Před rokem

      Calm down

    • @KILLCHRISU
      @KILLCHRISU Před rokem

      @@Jb67912 you’re the one that needs to chill

  • @saddacracker
    @saddacracker Před rokem

    Super helpful for me. I’ve read books, built a few apps and never fully understood the concept. You made it easy to understand!

  • @anisoseryx
    @anisoseryx Před 3 lety +35

    5:55 just type: npm init -y and it'll set default values automatically

  • @LucasNdesign
    @LucasNdesign Před 3 lety +6

    for those who are still stuck at 9:17 try this:
    const express = require('express')
    const { graphqlHTTP } = require('express-graphql')

    • @sabarblatoe
      @sabarblatoe Před 2 lety

      Thank you. Not sure why your response didn't get that 621 likes when YOURS actually solved the problem as posed to vaguely hinting at a solution. A gentleman & a scholar.

  • @laffytaffykidd
    @laffytaffykidd Před 4 lety +48

    As an FYI -- You can run `npm init -y` and it will enter in all default values for you :) Hope that helps. Fantastic video. I love your explanations!

  • @steveroseik
    @steveroseik Před rokem

    I Have wasted like 4-8 hours minimum with many tutorials, none of them provide full explanation and implementation clearly, yours was straight to the point, understandable and magically easy to comprehend and apply, love it.

  • @whoami......
    @whoami...... Před 4 lety +3

    This was by far more helpful than many other videos that I stumbled upon here. straight to the point without too much condescending blabber, thanks a lot!

    • @WebDevSimplified
      @WebDevSimplified  Před 4 lety

      Thank you! I am really glad you enjoyed the video. I unfortunately couldn't find any way to condense it below 40 minutes.

  • @godwinebikwo6544
    @godwinebikwo6544 Před 4 lety +94

    You are by far the best when explaining Javascript. Much love from Nigeria

    • @WebDevSimplified
      @WebDevSimplified  Před 4 lety +4

      Thank you! I'm glad my teaching style resonates with you.

    • @bonaventureokoli7988
      @bonaventureokoli7988 Před 3 lety +2

      @@WebDevSimplified it does with everyone

    • @swibay
      @swibay Před 3 lety +2

      Love from Tanzania! My name is Kyle and my job is to simplify the web for you 🤜🤛🏾

  • @richnimbu
    @richnimbu Před rokem +2

    I always enjoy your teaching style. So clean and clear. Great content. Thank you!

  • @MohitGupta-ln2js
    @MohitGupta-ln2js Před 3 lety +1

    Decided to pick GraphQL for my next project and hence decided to learn it properly.
    After watching this video, it feels I already know a lot about it.
    Thanks for giving me such a quick start.

  • @shonoma
    @shonoma Před rokem

    3 minutes into this video and I'm already learning so much more than struggling through countless google searches.
    Thank you for this video!

  • @cheatman05
    @cheatman05 Před 3 lety +1

    I'm new to the world of GraphQL and this was really helpful! Thanks for making this crash course

  • @SitaMbili
    @SitaMbili Před rokem +1

    Just came here to say thank you so much! Yet another tutorial of yours from which I've benefitted from a lot. I feel like I actually understand graph QL now!

  • @bryanstrader1740
    @bryanstrader1740 Před 3 lety +1

    This video was well done, the pace and material were perfect for an intro into GraphQL.

  • @AlphaWatt
    @AlphaWatt Před 3 lety

    Great videos man. I just came across your channel and they truly are helping simplify things. Really appreciate it

  • @g-l8492
    @g-l8492 Před 3 lety +3

    After watching a lot of other peoples tutorials: Thank you for your clear pronounciation ^^

  • @explore_with_buddha
    @explore_with_buddha Před rokem

    great explained. I am new to GraphQL. After many googling (including in paid platform), I found this easy, simple, and clear tutorial to help me understand it nicely. Loved it. Thanks for this video.

  • @VenkateshMogili
    @VenkateshMogili Před 3 lety

    More clear explanation among all, thank you kyle❤❤❤ When I read blog for book and author, I strucked at getting specific author related book, then I got it from your video, main thing is "parent", I'm always thinking about args instead of parent, now I got it. Another useful one I learned is fields, I didn't understand why some places functions, why some places object but got clear idea after you gave the reason. Thank you very much kyle😍😍👍👍👍👏

  • @abhishek_k7
    @abhishek_k7 Před 4 lety +6

    Thank you for this amazing GraphQL tutorial!

  • @salmankashfy
    @salmankashfy Před rokem

    Thank you so much. Straight to the point. Did'nt even waste a second. Each and every second was carefully crafted. Such an artwork.

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

    A great brief tutorial, I think I fell in love with GraphQL now, thank you!

  • @RahulinWeb3
    @RahulinWeb3 Před rokem

    completed the tutorial and everthikng worked . one except one thing in start which was already given as solution by someone in one of the comments. so happy I followed through it.

  • @hariharanviswanathan242
    @hariharanviswanathan242 Před 2 lety +3

    Very well explained. This is how tutorials should be IMO.

  • @novus9542
    @novus9542 Před 3 lety +1

    Damn. This is a MUST SUBSCRIBE channel. Awesome tutorial, easy and fast. Great job!

  • @billieporter156
    @billieporter156 Před 2 lety

    Mr. Web Dev Simplified, your channel has helped me SOOO much. You are a natural teacher. I hope these videos are making you rich and you're driving something really spiffy (like a gold-plated Sion) and that you have a swimming pool with a floating bar, which is what we are all aspiring to.

  • @danfaces
    @danfaces Před 3 lety

    Cracking video, great overview of the basics GraphQL. I was able to understand it very easily. Only criticism is that the "quick docs" preview covers the code on the line above you are typing. This makes it a bit frustrating when trying to follow along. Apart from this, I love the vid. Thanks!!

  • @skillfulones9495
    @skillfulones9495 Před 4 lety +24

    Great tutorial. GraphQL is starting to make sense from watching this.

  • @aishwaryasivakumar6425
    @aishwaryasivakumar6425 Před 4 lety +4

    This should be on the top.
    THANK YOU! 🔥

  • @StartersammlerXL
    @StartersammlerXL Před 4 lety +3

    Thanks for the amazingly easy explanation of that topic! Best one I've found! Greetings from Germany 🙏🏼

  • @richardw2977
    @richardw2977 Před rokem +3

    Hell of a crash course. Great info without talking down to your audience. Been in software for a long time and just now needing GraphQL for a job. I appreciate the in-depth overview without explaining what an IDE is (and other such nonsense). 🤣🤣

  • @thelelelul
    @thelelelul Před 4 lety

    Great video! Helped me get a grasp on using GraphQL together with Express. Thank you!

  • @adityarawat2966
    @adityarawat2966 Před 2 lety

    One of the best programming tutors out there. Thank you

  • @Davesmg
    @Davesmg Před 4 lety

    Your vídeos are the best about modern technologies about code!
    Thank you so much for so many share knowledge.

  • @williamtrent8244
    @williamtrent8244 Před 3 měsíci +1

    Thanks, great video. I need a quick intro but with some detail and this was perfect.

  • @latinacoder
    @latinacoder Před 4 lety +7

    Your skill for explaining these complex topics is impressive. Thanks for the tutorial

  • @pavelsokolov4190
    @pavelsokolov4190 Před rokem

    Awesome full-fledged video about building either front and back GraphQL apps.

  • @dannydenenberg
    @dannydenenberg Před 4 lety

    I can't tell you how nice it is to watch videos that cut out the bulls***
    Thanks so much!

  • @brunomenezes4937
    @brunomenezes4937 Před 5 měsíci +1

    This is a very helpful video to learn the basics of building a graphql server. Very well presented! Try coding along with the presenter.

  • @lattelover7186
    @lattelover7186 Před 3 lety +1

    Awesome ❤️.
    I can now understand the basic of how the graphql worked after watching your video.
    I've got two questions:
    1. Is it possible if all the schema creation process can be automated by reading the database relationship automatically?
    2. How to resolve incoming args in a for of file/attachments?
    Thank you in advance.

  • @petarteodosinjr.5684
    @petarteodosinjr.5684 Před 4 lety

    Great video, it makes the whole concept of GraphQL very clear! Good work, thank you for that!

  • @khiemton-that5441
    @khiemton-that5441 Před 3 lety

    Perfect video. 10/10
    Amount of Content you have added there. Just perfect
    Not to much details not to less. Just perfect
    Talking speed. Just perfect
    Example. Just perfect
    Was there one thing I did not understand? Nope!
    Well done Sir.

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

    i love how this guy simplify everything, thank you

  • @HACKINGMADEFUN
    @HACKINGMADEFUN Před 2 lety

    I always wanted to look into GraphQL and found your video today. This is so cool and thanks a lot for making this...

  • @aakashggujju
    @aakashggujju Před 3 lety

    Amazing Amazing tutorial on GraphQL and this is just that I was looking for getting quick understanding on this amazing amazing technology. Also your teaching style is just an awesome and I really loved it. Thanks

  • @naj0916
    @naj0916 Před 2 lety

    Very good tutorial. Direct to the point, meaty, and practical.

  • @p32929
    @p32929 Před 3 lety

    WOW! Awesome tutorial. Thanks. I learned GraphQL within just 40 minutes!

  • @eranprime3696
    @eranprime3696 Před 3 lety +1

    This is great , thank you. Graphql site lucks entry level explanation, and is hard to grasp. Your video is vary clear and cover that first steps needed to understand the idea behind Graphql.

  • @MsAnnieHuang
    @MsAnnieHuang Před rokem +2

    I am checking for GraphQL tutorials. There are not many new ones out there and I am initially a bit spetical for a tutorial that is 3 years old. But turn out all the syntax is still valid. It proves how stateable the technology is and how solid this tutorial is. Great job, Web Dev Simplified!! I have been following your content more and more in the recent 2 years.

    • @gourane
      @gourane Před rokem

      I am a student and i have to learn graphql can i get help

    • @mikejakusz1493
      @mikejakusz1493 Před 9 měsíci

      setting up the expressGraphQL route does not work for me.

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

      You just need to import expressGraphQL like this: `const expressGraphQL = require('express-graphql').graphqlHTTP` everything else is working@@mikejakusz1493

  • @CharrliePradeep
    @CharrliePradeep Před 2 lety +7

    Its really an interesting video for GraphQL. I could able to understand most of the concepts within some minutes. As Dougie mentioned I had that error as well
    const expressGraphQL = require("express-graphql");
    -- should be --
    const { graphqlHTTP } = require("express-graphql");
    After changing that it worked like butter. Thanks for the video :)

    • @pioneer7161
      @pioneer7161 Před rokem

      const expressGraphQL = require('express-graphql').graphqlHTTP

    • @SheilaAltingvanGeusau
      @SheilaAltingvanGeusau Před 9 měsíci

      I'm just starting out as a dev so sometimes things that are obvious to experienced engineers are new for me. I also had to change the line:
      app.use('/graphql', graphqlHTTP ({
      graphiql:true
      }))
      for it to work. Thanks @CharrliePradeep

  • @Shruti42945
    @Shruti42945 Před 3 lety

    This tutorial is superior and very easy to follow.Thank you.

  • @dreamfly555
    @dreamfly555 Před 4 lety +13

    Wow, the best intro to GraphQL I have seen so far! Thanks!

  • @prathic
    @prathic Před 3 lety

    Great video to kick off your journey in graphQL

  • @techupdates9166
    @techupdates9166 Před rokem

    Really your videos on youtube about development is so helpful Kyle! we are so lucky. Specially thanks👌👍

  • @kritikamamtagaur6968
    @kritikamamtagaur6968 Před rokem

    I really enjoyed this video and the way you explain was excellent I was having too many query about GgraphQL those all things cleared for me now. Thank you.

  • @chauhanvipul2009
    @chauhanvipul2009 Před 4 lety

    I would like to thank you for your awesome tutorial.
    You make it really easy to understand and not boring at all.
    Please keep going you're doing great !!! What's your good name, please?

  • @mayankvora8116
    @mayankvora8116 Před rokem

    Excellent Explanation and in 40 mins you explained all necessary concepts.

  • @vincentverdugo
    @vincentverdugo Před 3 lety

    Learning this for "The Graph" blockchain. Thanks a lot.

  • @youngun550
    @youngun550 Před rokem

    Kyle. This was a fantastic tutorial. Thank you soooo much!

  • @NicholasRogersMN
    @NicholasRogersMN Před rokem

    Great video! Very easy to follow, a great entry point into GraphQL

  • @mazharuddin3647
    @mazharuddin3647 Před 3 lety

    Awesome tutorial!!! Clean and Easy... Thanks a ton!!!

  • @harshitagarwal4338
    @harshitagarwal4338 Před 4 lety +1

    This tutorial is so good. Thanks for this man

  • @ThePhosee
    @ThePhosee Před 3 lety

    I think this is the best explanation of graphql for beginners that I saw

  • @continental_drift
    @continental_drift Před 3 lety

    Great video.
    Simple explanations of a complex subject including data normalization.

  • @timlinator
    @timlinator Před rokem

    Another great video. I have watched many of your videos and you are a great teacher. I look forward to more.

  • @yashtibrewal4259
    @yashtibrewal4259 Před 3 lety

    24 minutes passed in of the video and I already understood the main thing. Thanks for such a good video.
    P.S. Could you do the same video in typescript instead of j.s.?

  • @stuglass
    @stuglass Před 4 lety +1

    Awsome Video to get up and running with GraphQL. I would suggest turning off the tooltip hint in VSCode as this makes it more difficult to see the code you are typing. Thanks for the video :)

  • @sanjitselvan5348
    @sanjitselvan5348 Před rokem

    Amazing tutorial and explanation! Thanks a ton Kyle.

  • @mohitsoni4925
    @mohitsoni4925 Před 4 lety +1

    Explained really well, I understood everything and was able to make my own example after watching this. Thanks for your efforts.

  • @kuyajon
    @kuyajon Před rokem

    Man.... you are so good looking like a movie star, and you explain very well, and very well organized presentation. you got it all

  • @jacquitratongamanahaja979

    Thank you so much bro for this video, it helps me a lot to grasp Graphql.

  • @madhutammu2209
    @madhutammu2209 Před rokem

    You never Disappoint with your videos , thank you

  • @umanggupta4821
    @umanggupta4821 Před 2 lety

    Thank you. This is simple, sweet, crisp!

  • @B3ASTM0DE1
    @B3ASTM0DE1 Před 5 lety +17

    This was great! I finally finished my web development bootcamp and just landed a job as Front-end Developer for a dream company of mine! Your videos have helped a ton! Thanks for everything man and keep up the great videos!

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

      Congratulations! That is amazing. Nice job putting in all the hard work. How was the boot Camp experience for you? Did you feel you learned a lot?

    • @B3ASTM0DE1
      @B3ASTM0DE1 Před 5 lety +3

      @@WebDevSimplified The bootcamp was a great experience, I've been doing web development since high school so I had a background in it prior to starting it. Everything came pretty quickly to me and I was able to easily understand the advanced concepts easier having had that prior experience. However, alot of others had no experience and the advance concepts where too hard for some people to grasp. I tried my best to get there before class and stay after class to tutor people though. Overall, it was a way for me to figure out the best path and what to learn in order to become employee ready.

    • @WebDevSimplified
      @WebDevSimplified  Před 5 lety +3

      @@B3ASTM0DE1 That's amazing. I am really glad that it went so well for you, and that you were able to help others along the way. I wish you the best of luck with your future career.

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

      @@WebDevSimplified Thanks man, appreciate it! Keep up the great videos!

    • @levos2007
      @levos2007 Před 4 lety

      @@B3ASTM0DE1 how long does it take?

  • @mohamedamine9180
    @mohamedamine9180 Před 3 lety

    Its a great, well explaind and simplified tut. thank you a lot, this was really helpfull.

  • @akrititewari9695
    @akrititewari9695 Před 3 lety

    Very interesting and fairly simple to understand! Thanks for you effort :)

  • @ljbrown238
    @ljbrown238 Před 3 lety

    Outstanding work! Very helpful!!!

  • @csxinfo1
    @csxinfo1 Před 3 lety

    Perfectly explained, thanks man!

  • @codebitcookie8053
    @codebitcookie8053 Před rokem

    This was amazing. Thanks for all the free info!

  • @kent7230
    @kent7230 Před 4 lety

    Thank you!!! This video is soooooo great! Love it!

  • @Yolo-yb1nd
    @Yolo-yb1nd Před 2 lety

    Thank you!! This tutorial is super helpful and clear!!!

  • @vladimirjean
    @vladimirjean Před 5 lety +4

    Great tutorial, very helpful, keep up the good work!