GraphQL Crash Course - GraphQL NodeJS

Sdílet
Vložit
  • čas přidán 7. 07. 2023
  • In this beginner-friendly CZcams crash course, join us as we dive into the world of GraphQL, the revolutionary query language for APIs, alongside Node.js and React.
    FullStack Twitter Clone (25% OFF)
    ► learn.piyushgarg.dev/learn/tw...
    Code Files
    ► drive.google.com/file/d/1xFYT...
    Key topics covered in this crash course:
    ► Introduction to GraphQL and its Benefits
    ► Understanding GraphQL schemas and resolvers
    ► Creating a GraphQL server with Node.js using popular frameworks like Apollo Server
    ► Integrating GraphQL with React to build dynamic and efficient user interfaces
    Hashtags
    #graphql #graphqlapollo #graphqlserver #nodejs #nodejstutorial #mernstack #reactjs #nextjstutorial #nextjs #graphqlapi

Komentáře • 121

  • @mailprashantchawla
    @mailprashantchawla Před 10 měsíci +6

    Loved it. Please group all the graphql videos in a playlist in order, this will be really helpful.

  • @8creators
    @8creators Před 10 měsíci +2

    Finally, Highly recommended content, My all confusions cleared, Really Appreciated!

  • @pateltapesh505
    @pateltapesh505 Před 2 měsíci +1

    Thanks a million for this video, really got the in depth knowledge of what graphQL is and how it works. Would be amazing to see more videos on react and graphQL.

  • @tarushchandra8993
    @tarushchandra8993 Před 10 měsíci +17

    Awesome video Piyush. A great entry point to start exploring GraphQL. :)
    btw, the error came because you mistakenly called wrong endpoint in the Todo -> user Resolver. You called ${todo.id} instead of ${todo.userId}. Because there are only total 10 users, so uptill 10 todos, it was able to show the user data but at 11th todo, user data is null.

  • @iamakashkumarram
    @iamakashkumarram Před 11 měsíci +23

    Best and my Favourite teacher on CZcams 🔥. Love you piyush sir for this amazing course. If Possible please make NextJS + postgreSQL course.😊

  • @HolidayHungry
    @HolidayHungry Před 2 měsíci +3

    I would like to point out a miss where you have fetched a user based on todo.id, that is why you are getting many records with null user.
    Instead if we fetch user with todo.userId, the issue would get resolved. The data in the placeholder API is perfect.
    Thanks though! I wanted to learn GraphQL, and you video was extremely helpful.

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

    Please keep on uploading more videos, it helps a lot, Thank you Sir!!!

  • @rafiulislam1260
    @rafiulislam1260 Před 10 měsíci +1

    Hey Piyush! Thanks for the tutorial. Please create a playlist of all GraphQL videos

  • @KetanRathod-dm9ep
    @KetanRathod-dm9ep Před 7 měsíci +10

    It was not rate limiting but rather it was issue with your user code in that you fetched data of user.id and not user.userId. that's what the error was. bw tutorial is owesome.

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

    What an amazing tutorial. Thank you, Piyush.

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

    This crash course is best for graphql starting journey ❤️❤️

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

    This was very helpful to understand the GQL , I was looking for node+GQL but also got it with react , So win-win for fullstack dev

  • @Dev07Subham
    @Dev07Subham Před 9 měsíci +1

    One of the best Teacher on CZcams ❤

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

    Amazing Content Piyush....Loving your videos

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

    I wait for long time thanks 👏👏👏👏

  • @sananbabar5687
    @sananbabar5687 Před 11 měsíci +1

    Great video and good explaination. There is just one thing which is kind of confusing for me. Correct me if I am wrong, I think the user resolver which you wrote for todo and user relation should be userId not id of the todo. It was working fine because the todos and users were connected with the ids in ascending order.

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

    Aare bhaiya mai kal ye hi sikhne ke liye CZcams prr video dekh raha tha, aaj aapne hi video bna thi, 👏👏🙏🙏🙏

  • @kotakcloud
    @kotakcloud Před 6 měsíci +7

    Thanks!

  • @brosgaming108
    @brosgaming108 Před 11 měsíci +1

    Thanks bro for this ❤️

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

    what I love about Piyush Garg, is that he explains the problem for which any specific concept came as a result to solve that problem. He lets us understand problems so easily, sequentially, and nicely. Thank You Piyush.

  • @EzyCode
    @EzyCode Před 9 měsíci +1

    Very nice 😊 really deserve my like. 😊😊😊
    Keep going❤

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

    amazing sir .......... waiting for that literally

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

    great one .enjoying your content a lot .

  • @gautam_vaishnav
    @gautam_vaishnav Před 11 měsíci +1

    I was just thinking about to learn graphql, and started watching a crash course by @hitesh bhaiya, and suddenly I saw you video. What a coincidence 😂, you are great ❤.

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

    Wow sir thanks for the course your the best tutor

  • @_PiyushKumar-vv7ui
    @_PiyushKumar-vv7ui Před 5 měsíci +2

    At 26:30 I think there should be ${todo.userId} inside the resolver for Todo -> user. Otherwise it will fetch the user details according to the id of the todo but not the actual user details who added the corresponding todo. Not an error but just a logical issue. Also we have to define userId: ID! inside the Todo schema.
    This is also the reason why we are not getting no users for some the todos at 40:29

    • @shubhojeetbera09
      @shubhojeetbera09 Před 4 měsíci

      true bro

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

      your solution worked .
      can u explain this please
      we are not specifying userId anywhere in our typedef then how graphql knows that this field exist

  • @ritiksharma9834
    @ritiksharma9834 Před 11 měsíci +3

    First of all followed your threads account and secondly
    What an optimistic voice😌
    But please bhaiya crash course nahi,long videos daalo
    Different from others

    • @AK-ln2ko
      @AK-ln2ko Před 11 měsíci

      Optimistic voice ?? Girly voice hai bhai

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

      ​@@AK-ln2koHijde ho kya??
      Kitna soft voice hai Piyusha bhaiya ka..

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

    Best video i will found for graphl can.
    What vsCode theme do you use?

  • @md.shahebali38
    @md.shahebali38 Před 11 měsíci

    Awesome, Explanation, please make a project with graphql and react redux with node js express, redis with deployment

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

    Thanks for posting amazing content.

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

    Awesome video bro

  • @DSA_Lover
    @DSA_Lover Před 4 měsíci

    00:02 Introduction to GraphQL and its benefits
    01:51 Handling data structure and practical examples
    05:48 Optimizing application by reducing unnecessary API calls.
    07:39 GraphQL can efficiently fetch and filter data in a single query
    12:05 Implementing the GraphQL server and handling requests on /graphql
    14:17 Creating GraphQL types and queries
    18:00 Creating a function to make API calls with data access and type definition.
    20:05 Creating a user type with fields like ID, name, email, phone, and website.
    23:37 Fetching user ID and binding it to a new operation
    25:30 Nested queries in GraphQL
    29:04 Setting up Apollo client with URI and cache options
    30:45 Using GraphQL to pass queries and import Apollo Provider
    34:22 Error code 44 due to rate limiting hits
    35:58 Creating a fake database for users in GraphQL NodeJS.
    39:58 Understanding GraphQL and its data retrieval process.
    41:50 The course covers creating a Twitter clone with GraphQL.
    Crafted by Merlin AI.

  • @KetanRathod-dm9ep
    @KetanRathod-dm9ep Před 8 měsíci

    whatever done by graphql can also be done by mongodb select and populate methods, so what is difference between all, i am confused by this. will it increase request time ?

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

    Hey Piyush! Thanks for the tutorial.
    Can you please help with a video on how to setup graphql in nextjs(latest).

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

    Kya mast cheez hai graphql bhai !

  • @Kv-kk2nj
    @Kv-kk2nj Před 5 měsíci

    How do you create your videos, they are cool like what tools you use for recording, editing

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

    Awesome video...

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

    which pen tab and software you use for your screen and voice recordings. plx share details

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

    Hi, Is there any OpenSource repo of graphql where we can contribute?

  • @sukhwindersaini5869
    @sukhwindersaini5869 Před měsícem

    excellent course

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

    amazing bro

  • @aadarshgurug
    @aadarshgurug Před 11 měsíci +1

    it is amazing

  • @shubhojeetbera09
    @shubhojeetbera09 Před 4 měsíci

    Excellent video

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

    Whats the point of using graphql if you are already using mongoose + mongodb, the queries in it serve the same job. Is graphql for when theres no using mongodb or something with similar querying?

  • @mma-dost
    @mma-dost Před 11 měsíci

    Bhaiya why you have use bodyparser as express already have express.json() now previously there was nothing like that that's why we have to use bodyparser but not we don't have to. I guess correct me if I am wrong

  • @shubhamgupta-bl1tr
    @shubhamgupta-bl1tr Před 11 měsíci

    Best teacher

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

    Why a seperate server for graphql isnt that a api query lang, wouldnt it run on my existing server?

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

    Sir, how do we apply rate limit in graphql

  • @abdulragib6004
    @abdulragib6004 Před 4 měsíci

    Nice bro

  • @iamakashkumarram
    @iamakashkumarram Před 11 měsíci +2

    Sir please make NextJS 13.4 + GraphQL course 😊.

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

    Sir can we have a course on postgresSQL ??

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

    Thanks.

  • @Riteshk_007
    @Riteshk_007 Před 6 měsíci

    Sir prisma kese use krte h nextjs me ??

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

    Awesome

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

    Sir please continue AWS series 😊

  • @baruntiwary31
    @baruntiwary31 Před 11 měsíci +1

    Hii sir in Twitter clone course, can we will be able to interact with you

  • @user-sb1ys3um3l
    @user-sb1ys3um3l Před 9 měsíci +1

    Thank you for explaining nicely, but if i want users name for the all the users example 10,000 users , i does it hit the get user by id 10,000 times and give you the data?

    • @muhammad_haseeb_pk
      @muhammad_haseeb_pk Před 4 dny

      bro it has a getalluser where you get all users and just there id

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

    OP AAg laga di bhaiya

    • @priyanshuganatra
      @priyanshuganatra Před 29 dny

      Are dipansh bhai aap yaha (I'm one of the students of supreme 2.0 batch)

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

    Wait is over

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

    sir please make a video on how to use AWS with Node js 🙏🙏🙏🙏🙏🙏🙏🙏

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

    🔥

  • @lovishduggal9064
    @lovishduggal9064 Před 4 měsíci

    Thanks

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

    @piyush please can you review your this video, because it showing wrong way to resolve dependency of type in resolver, therefore you are seeing only name for first 10 data at 40:23. Can you please correct content? you are basically consuming id of todo as userID which is wrong. Please correct video. Thank you.

  • @subhasishdey6753
    @subhasishdey6753 Před 16 dny +1

    Bro, the error occured because you was fetching Todo.user with todo.id insted of todo.userId . {only 10 users and 100 todo's are there. } . I hope this was helpfull.

  • @ArunSharma-qo5bi
    @ArunSharma-qo5bi Před 6 měsíci

    how to connect it with nextjs

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

    👏👏

  • @user-hx6eo4cv5k
    @user-hx6eo4cv5k Před 11 měsíci

    Sir make a tutorial on NextJS 13.4 and GraphQL.

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

    Hello sir, If you could explain the thiings in which you are saying "Ab mai yaha pe kya kar sakta hun...." then it would have been far more better than this.

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

    Bhai aap ka api se and file se read karne mai dono mai ek hi issue tha resolver mai
    todo.userId hona chaiye tha
    Na ki todo.id
    Is liye usko 10 k baad k user milne bnd ho gye

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

    I think there is mistake, you should take ''userId' instead of 'id' in user sub model at 25:25

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

    Also make on mysql with sequlize

  • @pratikghorpade6853
    @pratikghorpade6853 Před 28 dny

    Bekar Ki Bata wa epic

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

    But the mentioned problem can be easily solved like use "Select name from Table" Instead of "Select * from Table" . Isn't it?

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

    Need NextJS + GraphQL course.

  • @maxx7101
    @maxx7101 Před 11 měsíci +1

    Need nextjs+graphql

  • @manishsingh-mg2wy
    @manishsingh-mg2wy Před 11 měsíci

    Sir do complete the kinde 2nd part vidio

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

    Please make a video what is git and GitHub

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

    Interesting video .... From Ludhiana👍

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

    sirr aap kuch din pehle nikal dete meko intern ka project dena tha graphql waala

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

    This is cause n+1 query problem

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

    website is not working

  • @vishalbajpai-uu2tw
    @vishalbajpai-uu2tw Před 11 měsíci

    bhaiya dsa par video banaiye

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

    Maybe you didn't explain the problem statement aptly.
    GraphQL might have some advantages over REST calls, but according to what you explained, the problem GrapgQL solves, we can we do the same thing using mongoDB aggregations (or using joins in SQL DB).
    Then why would be use GraphQL.
    Again, there might be some more advantages to using GraphQL which you might have missed.

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

      agree..

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

      you are not getting the point
      It got the data in a single API call you dont need multiple API likes in REST API

  • @JayPrajapati-lj8pw
    @JayPrajapati-lj8pw Před 6 měsíci

    Sir todo. Userid likho error nahi ayega

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

    Body parser ,express me inbuilt hai I guess?

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

    9:40 main content starts...

  • @bharatha8210
    @bharatha8210 Před 6 měsíci

    please to make a video English also

  • @Iamhere-em2us
    @Iamhere-em2us Před 11 měsíci

    Please give English subtitles ot tell some words in English also

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

    upto 26:00

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

    Your teaching explanation is fine but u are very fast

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

    main nahi btaunga ki aapne harkirat sir ka course buy kia hai

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

      Because thats true, I never bought any 🤓

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

      @@piyushgargdev I know sir, I was just kidding 😍 you have a great knowledge ❤️❤️ and explanation is too good🥳

  • @mihirsidhdhapura5550
    @mihirsidhdhapura5550 Před 12 dny

    Crash course? Where is mutation??? Man wasted my time here.
    Also about u getting error is in ur code base. Use userId instead of id when u r writing nested query.

  • @umangpancholi
    @umangpancholi Před 19 dny +1

    This video is of no use, there is mistake in your code😡😡😡😡
    And whoever said that the video is good and in which code does not know
    Or is it your friend or you who does everything to create your videos hype

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

    Is resolver, after /users/${todo.id}, make sure it is ${todo.userId} instead of id. That's the trouble he was facing.

  • @shanumalik4275
    @shanumalik4275 Před 11 měsíci +1

    Great tutorial ♥♥♥♥I really like the way you explain complex concept in a very simple manner but Why we are using apollo for graphQL instead of express-graphql? Just a little doubt 🫤🫤

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

    todo.userId hoga...

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

    You are getting error as the mapping is not correct
    Actual=> todo.userId=user.id
    you => todo.id=user.id
    their are 200 todos with different id and only 10 users

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

    I think you did a simple mistake here. but no worries i found it and corrected it for my self
    In Resolvers:
    Todo :{
    user:async(todo)=> await axios.get(`url/${todo.userId}`).data
    }