GraphQL Tutorial Beginner - Learn GraphQL in NodeJS / ExpressJS

Поділитися
Вставка
  • Опубліковано 27 гру 2024
  • In this video, I will teach you guys the Basics of GraphQL using express-graphql and nodejs and express. I will go over a conceptual overview of what is GraphQL, and then show you guys how to implement a GraphQL API!
    Code For the 2 Parts: github.com/mac...
    -
    🚀 Learn ReactJS By Building 6 Projects: codedamn.com/l...
    Please leave a comment on what topic you guys want me to cover next!
    -
    📞 Tutoring Session: www.fiverr.com...
    💻 PedroTech Discord: / discord
    -
    Social
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Website: machadopedro.com
    Twitter: / pedrotech_
    Linkedin: / machadop1407
    Instagram: / _pedro.machado_
    Github: github.com/mac...
    Email: machadop1407@gmail.com
    Tags:
    GraphQL
    GraphQL Tutorial
    ReactJS Tutorial
    ReactJS and MySQL
    NodeJS Tutorial
    API Tutorial

КОМЕНТАРІ • 147

  • @user-tt6nc6mo7k
    @user-tt6nc6mo7k 4 роки тому +20

    I've watched at least 20 videos on graphql. It has been your video that finally made it "click" for me. Thanks.

    • @PedroTechnologies
      @PedroTechnologies  4 роки тому +4

      Awesome! You have no idea how happy I am that I helped you! I remember the struggle of learning GraphQL In the beginning, so I am happy I was able to ease the process! If you have any questions just lmk!

    • @kobenade
      @kobenade 3 роки тому

      Same here. Great job👍

    • @aichaouiabdessalam3102
      @aichaouiabdessalam3102 3 роки тому

      @@PedroTechnologies honestly same here thanks man

  • @DanFlakes
    @DanFlakes 3 роки тому +4

    Like everyone before me, I just want to say your video is the only one that gave me a clear idea on how GraphQL works. Thanks man!

    • @PedroTechnologies
      @PedroTechnologies  3 роки тому +1

      Thank you so much! I am very happy that this video helped so many people, I used to be scared of posting graphql videos because I know how easy it is to make it confusing.

  • @ayushdedhia25
    @ayushdedhia25 3 роки тому +9

    Hello Sir, it was great watching this video!! I was banging my head here there to find a good tutorial to learn Graphql, but didn't get the tutorial as yours... You just taught it like its just a piece of cake. You were really a life saver for me ❤️ Thank You!! Love from India 🇮🇳

    • @PedroTechnologies
      @PedroTechnologies  3 роки тому +3

      Thank you so much! I know graphql is hard, so I am happy to see I could help :)

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

    Why can't everyone teach like this. Why?
    Hats off man hats off. You explained it in a way that I finally understand.

  • @aidanwalker3058
    @aidanwalker3058 3 роки тому +5

    you explain everything so easily some of the best content ive found on youtube for react,node,graphql - thanks!

  • @fahadus
    @fahadus 3 роки тому +4

    You're a natural teacher. Great tutorial!
    Thank you for taking the time doing this.

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

    Best tutorial channel on UA-cam. I have learned so much from you in such a short time. Thank you.

    • @PedroTechnologies
      @PedroTechnologies  3 роки тому

      Wow thanks hahaha I feel very motivated when I read comments like this :)

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

    Cant freaking believe i learn graphql in less that 30 mins. Thanks man

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

    I have been watching many tutorials, but the point was confused me! you taught graphQL with express like drinking a cup of tea, thank you body 😘

  • @SSn0wx
    @SSn0wx Рік тому +2

    Amazing tutorial my friend! Brazillian teachers are always the best ones lol

  • @mandihaase2744
    @mandihaase2744 3 роки тому +3

    Awesome introduction to GraphQL. This was perfect!

  • @romimaximus
    @romimaximus 4 роки тому +2

    This is the best and better explained GraphQl video that i ever watched... you are a great awesome teacher Pedro..!!! 100 stars for you !! 😁🤘🤘

    • @PedroTechnologies
      @PedroTechnologies  4 роки тому +1

      Hahaha Thank you so much! I love GraphQL and I am glad that I was able to help you!

    • @romimaximus
      @romimaximus 4 роки тому +1

      @@PedroTechnologies estou com dúvida tenho um frontend em ReactJs, e no Graphql só tenho 1 endpoint certo ? , e no caso no front eu uso "localhost/adduser"..para adicionar um usuário...qual seria o endereço para enviar esses dados ? ..rsss...obrigado..👍

    • @PedroTechnologies
      @PedroTechnologies  4 роки тому +1

      @@romimaximus Boa, é um pouco differente quando trabalha com graphql. Inves de usar uma funcao como o fetch ou o Axios, precisa usar uma library de graphql pra o react. Eu uso o apollo client 3.0. Vou fazer um video explicando tudo!

    • @romimaximus
      @romimaximus 4 роки тому +1

      @@PedroTechnologies uai ...parceiro ...vc é BR...!! rssss....e eu tbm nem notei que escrevi em português...agora que fui ver...mas valeu..estarei aguardando...rsss...👍

    • @PedroTechnologies
      @PedroTechnologies  4 роки тому +1

      @@romimaximus kkkkkkk achei q c escreveu pq sabia q eu era br

  • @muhammadnaveeed9382
    @muhammadnaveeed9382 3 роки тому +1

    one of the best tutorials on graph ql in an easy way. really love it. you save my 2-3 days which i was wasting to learn it earlier. thank you soo much 👍👍👍👍👍😍😘😍

  • @ede7051
    @ede7051 3 роки тому +1

    Really appreciate the use of mock data to bring the example to life 🏆

  • @richardmelkonian5681
    @richardmelkonian5681 3 роки тому +1

    thanks for this great content. Note for anyone following along mockaroo now formats generated data as first_name and last_name. Either replace them with firstName and lastName or change your query.

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

    You always have a video what I need to learn keep it up fam! 🔥

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

    Unfortunately "graphql-express" package is deprecated.

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

      Hi I am following this video. Could you please help me if you have any other reference or solution. Any help will be appreciated 🙂

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

      @@mr_bade_shubhzzz90 Sorry, but I decided not to use Graphql.

  • @mohamedwaqqas
    @mohamedwaqqas 3 роки тому +1

    Liked and subbed. This video finally made it all click in place. Thanks mate.

  • @BinhNguyen-os1dc
    @BinhNguyen-os1dc 3 роки тому

    love the way you explain GraphQL and how it work with simple tutorial

  • @emyboybeats4330
    @emyboybeats4330 3 роки тому +5

    This is the only video that makes sense on UA-cam 😂😂

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

    Thank you bro. You just cleared all the confusions I had about graphQL

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

    This man has solution for everything

  • @dawid_dahl
    @dawid_dahl 3 роки тому +1

    Really good introductory video. Thank you! (Subbed!)

  • @maxmaksum4673
    @maxmaksum4673 3 роки тому +1

    bro..you are the best in explanation

  • @DarkRider213
    @DarkRider213 3 роки тому +1

    thank you so much! this was so helpful. finally feel like i understand graphql

  • @shabnamnaaz4676
    @shabnamnaaz4676 3 роки тому

    I have a question , when resolving each field , we will need to write Rest api call for fetching data , and that would be fetching complete dataset , from which fields would be returned which user requested for . how are we optimizing performance here given that our resolver will be getting complete data ?

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

    At what context i should use native graphql library as you have explained very well
    over other library like Apollo client ?

  • @RaghavendraGowda7
    @RaghavendraGowda7 3 роки тому

    mutation createUser yields nulls than actual values in newer version of the graphql?

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

    How or what would you need to do in regards to setting the port on a live api once it is hosted on a live server?

  • @mathiashandle5510
    @mathiashandle5510 3 роки тому +1

    Excellent tutorial as always!

  • @aiandv
    @aiandv 3 роки тому +3

    I like the way that your talking already in 1.5x speed. Don't need to manually adjust it anymore lol

  • @inakujoel3300
    @inakujoel3300 3 роки тому +1

    Really enjoyed it, but mine wasn't returning data from my database (mongodb) to the graphiQl 😭
    When I console logged it, the data was there but it wasn't accepted by graphql with no errors thrown

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

    After adding person object and refresh server new person dissapears.
    In mutation "create user" I add fs.writeFileSync with arguments to update mock-data.json.
    Now everything works fine.
    It is good way to make db for future upgrade? Or its better to add some db like mongo?

  • @MohitKumar-kt5ss
    @MohitKumar-kt5ss 3 роки тому +1

    Bro, can you tell redux is necessary for mern stack or not? I am fresher in this field. I learned crud operation in mern from your channel but I have this confusion.

    • @PedroTechnologies
      @PedroTechnologies  3 роки тому +1

      It is not necessary! State management is important, but redux is not the only state management library. React has a built in api for state management called the Context API, and I like using it!

    • @MohitKumar-kt5ss
      @MohitKumar-kt5ss 3 роки тому

      @@PedroTechnologies thanks bro, you are doing great

  • @mwnkt
    @mwnkt 3 роки тому

    Thank you sir, for some reason i prefer this aproach to the apollo server way of creating graphql servers.

  • @nikhilverma4976
    @nikhilverma4976 3 роки тому

    What if I want 2 graphql endpoints. One of which is authenticated and the other is not

  • @BromanThings
    @BromanThings 3 роки тому +1

    Good tutorial, but in post production you have to fix those errors ahead of time, or have some kind of time stamp pop up to correct it. I spent a good 20 minutes wondering why my server wouldn't run, until I realized myself that I had to destructure GraphQLObjectType & friends from graphql AFTER the es5 import (like you did at 25:55).

    • @PedroTechnologies
      @PedroTechnologies  3 роки тому +1

      Sorry about that! Its kinda difficult sometimes you know. I also want to keep authenticity, like I hated when I was learning and I watched a video of someone doing everything perfectly and pretending not to be looking to the code already premade in another screen. When I do my videos I like to code while I talk cause if I make a mistake I can show how to solve to you guys. This time it was kinda bad hahaha but I will try to stop this errors!

    • @BromanThings
      @BromanThings 3 роки тому

      @@PedroTechnologies Thats okay it's completley understandable -- just wanted to offer some constructive criticism is all. This tutorial was otherwise very very fruitful! Thank you for making it : )

  • @meghnapradhan3526
    @meghnapradhan3526 3 роки тому

    this video was a lot of help ! Thankyou !

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

    Great tutorial!! Thank you Pedro

  • @BobbyBundlez
    @BobbyBundlez 3 роки тому +1

    once again killin it with the explanations my bro. think i watched ur mysql vid a month back... now on to graphql UGH lol... bit overwhelming but ur tutorils are helping. u have a vid on apollo, graphql, and mysql by any chance? all being used together?

    • @PedroTechnologies
      @PedroTechnologies  3 роки тому

      Hahaha thank you! The learning proccess is overwhelming but its worth it! I have a series on graphql mysql and react. But I use typescript in that one. ua-cam.com/play/PLpPqplz6dKxXRJLbOLozaQCB5Py4CEpzS.html

  • @kinoshan591
    @kinoshan591 3 роки тому +1

    This video helped so much thanks bro 👍

  • @ADIYR
    @ADIYR 3 роки тому +1

    Thank you very much, this is very helpful in learning graphql from the client and server side

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

    hi pedro i have follow along your video ..and it amazing . and i found that you seperate the grapql User type . and when i add another type just say cityType then i add city to user type and use the cityType and call with user query example user {_id,name,city{_id,cityName} } ...and it work as i expected.but now when i add user type in city type and what i want is get all user who live in city but i get error for this ....

    • @PedroTechnologies
      @PedroTechnologies  3 роки тому +1

      Thank you! So let me understand it better. You defined a model for user, and each user has a field which is a city type correct? And now u want to query all users from a certain city? In this case is more about the database you are using rather than graphql. Which db are u using?

    • @silvesterwali6565
      @silvesterwali6565 3 роки тому +1

      @@PedroTechnologies hi bro ...i using mongodb but the problem is not about the type between usertype and city type but how the module should be use ..and i found the similar problem and found the solution too in stackoverflow.com/questions/61259799/graphql-one-of-the-provided-types-for-building-the-schema-is-missing-a-name
      ..

  • @Skawtt
    @Skawtt 8 місяців тому

    Great tutorial. Thank you so much!

  • @KitKat-dl6ec
    @KitKat-dl6ec 3 роки тому +1

    What's this VS code extension for autocomplete GraphQL syntax?

  • @boffinschist1098
    @boffinschist1098 3 роки тому

    I'm getting null data returned in GraphiQL at 28minutes into the video. I followed it to an absolute tee, even changing parts of the code that you changed about 3 times with saying anything about it. I barely knew where the on switch was on a computer so I did well to get up to there. It says "getAllUsers": null in the response. I have tried the code from github but it includes stuff in video 2 and doesn't work. I guess there would be things I need to include to make that work. Hope someone can tell me what's going on with the "getAllUsers": null response.

  • @ThColinPereira
    @ThColinPereira 3 роки тому +1

    This video helped me so much! Thanks

  • @Github_tech_with_ty
    @Github_tech_with_ty 3 роки тому

    What extension imorted Graphq list automatically

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

    hi, thank you for tutorial. I've had problem. I wrote graphql: true, instead graphiql: true! Now is everything ok.

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

    Good stuff. Any tips on other ways to store the user data?

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

    Only a man of culture would choose port 6969.

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

    Great video! Thank you bro

  • @shakshirastogi273
    @shakshirastogi273 3 роки тому

    really nice video. i got the concept

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

    awesome teaching! ✌✌✌

  • @amartyachoudhary6793
    @amartyachoudhary6793 2 роки тому +5

    The best part of the video was that he ran the server on PORT 6969

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

    very good, videos, thanks for help some programmers

  • @wasimakram5826
    @wasimakram5826 4 роки тому +1

    Excellent , I enrolled to graphql course in Udemy, but it is confusing , Thanks alot , Eagerly waiting for next videos creating api with graphql and react

    • @PedroTechnologies
      @PedroTechnologies  4 роки тому

      Glad you liked it! I plan on making a lot more graphql series! I posted another video on graphql with react!

  • @saurabhs4743
    @saurabhs4743 3 роки тому

    Really good.. you remind me of thenewboston

  • @dzmitryaksionau4742
    @dzmitryaksionau4742 3 роки тому

    Pedro nice work. Thanck you!

  • @skverskk
    @skverskk 3 роки тому +1

    Excellent tutorial

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

    thank you for this teaching❤

  • @parasmanikc7341
    @parasmanikc7341 3 роки тому

    Great Video, thanks Pedro

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

    Great tutorial.All working except of reading json file. Getting "getAllUsers": null. I tried just to read json : const data = JSON.parse(userData) and log it to console and gettiing: undefined:1
    [object Object],[object Object],[object Object],[

  • @shubhamathawale7296
    @shubhamathawale7296 3 роки тому

    your lectures are so damn simple and easy to learn. but which FONT and THEME you using in this tutorial?

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

    Really useful, thank you

  • @JosephAli93
    @JosephAli93 3 роки тому

    actually, npm install express-graphql didn;t work for me, so i did npm install express only

  • @assimez-zaky8363
    @assimez-zaky8363 3 роки тому

    Great Tutorial!

  • @ricardotech
    @ricardotech 3 роки тому +1

    Daora Pedrão!!!! Valeu pelo videeo

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

    has been useful to me.

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

    Solid primer, thx!

  • @taranewstime6909
    @taranewstime6909 4 роки тому +2

    Bro I am waiting for this

    • @PedroTechnologies
      @PedroTechnologies  4 роки тому +1

      Hahaha u have been asking for this tutorial for a long time! The Graphql and react tutorial is coming up soon!

  • @salalalalalala11
    @salalalalalala11 3 роки тому

    Smooth than a fresh jar of skippy

  • @thunderstack5365
    @thunderstack5365 3 роки тому +1

    Ahh I am late 😅 btw nice explaination

  • @lakshaykhurana455
    @lakshaykhurana455 3 роки тому +1

    Please add the code link in the description.

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

    Have somebody code from the start of video? Not the end of course.

  • @GuilhermeHenrique-vo1sk
    @GuilhermeHenrique-vo1sk 2 роки тому

    Just Awesome !

  • @haolicoder-5898
    @haolicoder-5898 3 роки тому

    You are amazing.

  • @IkraamDev
    @IkraamDev 3 роки тому +1

    Search “JavaScript Mastery Best Terminal Configuration”

  • @awara6984
    @awara6984 3 роки тому

    Thank you

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

    Are your parents from Spain?

  • @mahesh4274
    @mahesh4274 4 роки тому +1

    Awesome

  • @rolikaseventysix
    @rolikaseventysix 3 роки тому

    .. Go back twice?Just no! However, thanks for the video, cool one!

  • @muhammadshahbaz-op4ei
    @muhammadshahbaz-op4ei 3 роки тому +1

    SIR kindly upload all the code on github, so sometime it's easy to understand from code, after watching the whole video,

    • @PedroTechnologies
      @PedroTechnologies  3 роки тому

      Sorry about that, here is the link: github.com/machadop1407/GraphQL-ApolloClient-Template

  • @anshumanxda
    @anshumanxda 3 роки тому +1

    NIce PORT

  • @Yolosopher27
    @Yolosopher27 3 роки тому

    man you are so cute and clever... Excellent at explaining, I subscribed (P.S. no homo xD)

  • @kerimkeskin927
    @kerimkeskin927 4 роки тому +1

    👍🏻

  • @Shellflower1234
    @Shellflower1234 4 роки тому +1

    You’re so cuteeeee

  • @The_Pavanputra
    @The_Pavanputra 3 роки тому

    I understood nothing

    • @PedroTechnologies
      @PedroTechnologies  3 роки тому

      I'm sorry to hear that. What exactly did you have trouble with?

    • @The_Pavanputra
      @The_Pavanputra 3 роки тому

      Looks like you just gave a walkthrough over the code and didnt really feel the need to explain.

    • @PedroTechnologies
      @PedroTechnologies  3 роки тому +1

      I understand! I try to use criticism to improve my next few videos. This video is pretty old so I agree I might not be the best one out there. Anyways, if you need any help I do have a full graphql series where I go over this and I for sure go over and explain everything :)

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

    localhost:6969 (sus) 😳⚫ the way you teach is really amazing. Keep it up

  • @garrysandhu4197
    @garrysandhu4197 3 роки тому +1

    Awesome