Learn GraphQL In 40 Minutes
2019 ж. 1 Нау.
725 785 Рет қаралды
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
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.
thanks for making such a wonderful video on graph QL. Could you please make some tutorial on integrating GraphQL with Sails-Mongo application?
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!
Thank you for the suggestions. JWT is a topic I want to cover in the nearish future.
Web Dev Simplified hi there, have you been able to create this tut yet? Love your tutorials!
Can you please make tutorial on apollo server with node js. Couldn't able to find much on web.
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.
It’s called using a quality microphone
mans straight out of the twilight saga
The best part in the video is in between 0:00 to 39:43
I clicked it and found out the video ended lol
const expressGraphQL = require("express-graphql"); -- should be -- const { graphqlHTTP } = require("express-graphql"); I kept getting an error till I looked up the documentation
Thanks man.
thanks man that helped
omg thank u, half an hour I was trying to figure out what is wrong
Great help, using typescript would have saved some time, and it's because they've make some breaking changes
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.
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");
Thank you!
Thanks
excellent - thank you!
or like this `const expressGraphQL = require('express-graphql').graphqlHTTP;`
Thanks men
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.
Didn't know anything about GraphQL, so glad this was the first video I watched. Such a great exposition. Thanks!
You are by far the best when explaining Javascript. Much love from Nigeria
Thank you! I'm glad my teaching style resonates with you.
@@WebDevSimplified it does with everyone
Love from Tanzania! My name is Kyle and my job is to simplify the web for you 🤜🤛🏾
I listened to this during a long drive home and it was perfect! Even without seeing the video it was easy to follow along
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!
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
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
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 :)
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.
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.
Amazingly made video. In 40 mins you have added almost everything that's required to develop an enterprise level apps.
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.
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
Best teacher ever. Straight to the point, and not a single second wasted. Thank you very much for this great video.
Calm down
@@Jb67912 you’re the one that needs to chill
I always enjoy your teaching style. So clean and clear. Great content. Thank you!
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!
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!
Thank you! I am really glad you enjoyed the video. I unfortunately couldn't find any way to condense it below 40 minutes.
Thank you for this amazing GraphQL tutorial!
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.
5:55 just type: npm init -y and it'll set default values automatically
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.
This video was well done, the pace and material were perfect for an intro into GraphQL.
for those who are still stuck at 9:17 try this: const express = require('express') const { graphqlHTTP } = require('express-graphql')
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.
Super helpful for me. I’ve read books, built a few apps and never fully understood the concept. You made it easy to understand!
3 minutes into this video and I'm already learning so much more than struggling through countless google searches. Thank you for this video!
A great brief tutorial, I think I fell in love with GraphQL now, thank you!
I'm new to the world of GraphQL and this was really helpful! Thanks for making this crash course
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!
But who doesn't love a good button mash 😂😂
Ha! I didn’t know that! Thank you!
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😍😍👍👍👍👏
After watching a lot of other peoples tutorials: Thank you for your clear pronounciation ^^
Very well explained. This is how tutorials should be IMO.
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.
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.
This should be on the top. THANK YOU! 🔥
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.
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.
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.
Thank you so much. Straight to the point. Did'nt even waste a second. Each and every second was carefully crafted. Such an artwork.
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.
Your vídeos are the best about modern technologies about code! Thank you so much for so many share knowledge.
Thanks for the amazingly easy explanation of that topic! Best one I've found! Greetings from Germany 🙏🏼
Thank you! I'm really glad you enjoyed it.
Great video, it makes the whole concept of GraphQL very clear! Good work, thank you for that!
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). 🤣🤣
Damn. This is a MUST SUBSCRIBE channel. Awesome tutorial, easy and fast. Great job!
One of the best programming tutors out there. Thank you
2023 update: import expressGraphQL like this if you get an error: `const expressGraphQL = require('express-graphql').graphqlHTTP`
Great tutorial. GraphQL is starting to make sense from watching this.
Thanks! I am glad I could help.
Your skill for explaining these complex topics is impressive. Thanks for the tutorial
Great video! Helped me get a grasp on using GraphQL together with Express. Thank you!
I can't tell you how nice it is to watch videos that cut out the bulls*** Thanks so much!
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.
Thanks, great video. I need a quick intro but with some detail and this was perfect.
Great videos man. I just came across your channel and they truly are helping simplify things. Really appreciate it
i love how this guy simplify everything, thank you
Simple, Neat and Clean to explain the concept. That's how it needs to be.
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
I always wanted to look into GraphQL and found your video today. This is so cool and thanks a lot for making this...
Explained really well, I understood everything and was able to make my own example after watching this. Thanks for your efforts.
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 :)
const expressGraphQL = require('express-graphql').graphqlHTTP
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
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.
Awesome full-fledged video about building either front and back GraphQL apps.
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.
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.
I am a student and i have to learn graphql can i get help
setting up the expressGraphQL route does not work for me.
You just need to import expressGraphQL like this: `const expressGraphQL = require('express-graphql').graphqlHTTP` everything else is working@@mikejakusz1493
Wow, the best intro to GraphQL I have seen so far! Thanks!
You're welcome! I am glad I could help.
Great video to kick off your journey in graphQL
WOW! Awesome tutorial. Thanks. I learned GraphQL within just 40 minutes!
This tutorial is so good. Thanks for this man
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!!
This is a very helpful video to learn the basics of building a graphql server. Very well presented! Try coding along with the presenter.
Kyle. This was a fantastic tutorial. Thank you soooo much!
Very good tutorial. Direct to the point, meaty, and practical.
Excellent Explanation and in 40 mins you explained all necessary concepts.
Thank you, I just had one error, which I could solve: I change this ==> const expressGraphQL = require('express-graphql'); to this => const expressGraphQL = require('express-graphql').graphqlHTTP well done ;)
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.
I think this is the best explanation of graphql for beginners that I saw
Another great video. I have watched many of your videos and you are a great teacher. I look forward to more.
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?
Thank you. This is simple, sweet, crisp!
This tutorial is superior and very easy to follow.Thank you.
Really your videos on youtube about development is so helpful Kyle! we are so lucky. Specially thanks👌👍
Learning this for "The Graph" blockchain. Thanks a lot.
Great video. Simple explanations of a complex subject including data normalization.
Man.... you are so good looking like a movie star, and you explain very well, and very well organized presentation. you got it all
Its a great, well explaind and simplified tut. thank you a lot, this was really helpfull.
The simplest GraphQL tutorial there is. Thank you
Lots of Respects young man, from Hyderabad, India!
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!
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?
@@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.
@@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.
@@WebDevSimplified Thanks man, appreciate it! Keep up the great videos!
@@B3ASTM0DE1 how long does it take?
Amazing tutorial and explanation! Thanks a ton Kyle.
Awesome tutorial!!! Clean and Easy... Thanks a ton!!!
Great video! Very easy to follow, a great entry point into GraphQL
good stuff brodi, needed the explanation for server side mobile apps
Great tutorial, very helpful, keep up the good work!
Thank you!
Perfectly explained, thanks man!
Thank you so much bro for this video, it helps me a lot to grasp Graphql.
Fantastic ! you nailed it in 40 minutes
You never Disappoint with your videos , thank you