GraphQL Crash Course - GraphQL NodeJS

Поделиться
HTML-код
  • Опубликовано: 7 ноя 2024

Комментарии • 138

  • @KetanRathod-dm9ep
    @KetanRathod-dm9ep Год назад +24

    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.

  • @_PiyushKumar-vv7ui
    @_PiyushKumar-vv7ui 9 месяцев назад +7

    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 8 месяцев назад

      true bro

    • @Anythiny
      @Anythiny 6 месяцев назад

      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

  • @mailprashantchawla
    @mailprashantchawla Год назад +9

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

  • @pateltapesh505
    @pateltapesh505 7 месяцев назад +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 Год назад +21

    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.

  • @8creators
    @8creators Год назад +4

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

  • @IcecreamLelo
    @IcecreamLelo Год назад +1

    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.

  • @iamakashkumarram
    @iamakashkumarram Год назад +24

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

  • @ritiksharma9834
    @ritiksharma9834 Год назад +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 Год назад

      Optimistic voice ?? Girly voice hai bhai

    • @4444-c4s
      @4444-c4s 6 месяцев назад

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

  • @HolidayHungry
    @HolidayHungry 6 месяцев назад +5

    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.

    • @Neo36978
      @Neo36978 5 месяцев назад

      Thanks Man

    • @anuragnayak9704
      @anuragnayak9704 Месяц назад

      how did todo.id work for him without any error?

  • @The-Giggle_Factory-u2c
    @The-Giggle_Factory-u2c 9 месяцев назад

    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.

  • @codecandyhub
    @codecandyhub 2 месяца назад

    Just loved the way you taught Piyush!!!
    I've never watched any youtuber tutorial with such focus, you explained everything very clear and to the point.
    And one more thing I'm impressed that you never asked for Subscribing channel.
    And another more. loved your "Babye"😁♥
    From now on you'll be my prioritized one for any topic

  • @mandorakannu
    @mandorakannu Год назад

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

  • @mohitsaud2071
    @mohitsaud2071 9 месяцев назад +1

    What an amazing tutorial. Thank you, Piyush.

  • @Vaibhav382
    @Vaibhav382 Год назад

    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

  • @__Gojo___
    @__Gojo___ Год назад

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

  • @dev.subham01
    @dev.subham01 Год назад +1

    One of the best Teacher on RUclips ❤

  • @mrmdabidhossain
    @mrmdabidhossain 2 месяца назад +1

    saying wrong statement with this confident is something else :D overall it's a good crash course

  • @gautam_vaishnav
    @gautam_vaishnav Год назад +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 ❤.

  • @dhruvsolanki4473
    @dhruvsolanki4473 2 месяца назад +1

    Really enjoyed watching this.

  • @surajbhardwaj2599
    @surajbhardwaj2599 Год назад

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

  • @vasantvyas2512
    @vasantvyas2512 Месяц назад

    He deserves more subscribers 👏

  • @rafiulislam1260
    @rafiulislam1260 Год назад +1

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

  • @sananbabar5687
    @sananbabar5687 Год назад +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.

  • @Shanky_17
    @Shanky_17 10 месяцев назад

    Kya mast cheez hai graphql bhai !

  • @badayaansh2
    @badayaansh2 11 месяцев назад

    Amazing Content Piyush....Loving your videos

  • @anuragnayak9704
    @anuragnayak9704 Месяц назад

    It's not rate limiting. You have to use todo.userId in the api call.

  • @kotakcloud
    @kotakcloud 10 месяцев назад +10

    Thanks!

  • @kartikag01
    @kartikag01 8 месяцев назад +4

    This is cause n+1 query problem

  • @ashishbhatt4821
    @ashishbhatt4821 Год назад

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

  • @sammykumar1777
    @sammykumar1777 Год назад

    Wow sir thanks for the course your the best tutor

  • @hacker57
    @hacker57 Год назад

    I wait for long time thanks 👏👏👏👏

  • @EzyCode
    @EzyCode Год назад +1

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

  • @tusharnagar1398
    @tusharnagar1398 10 месяцев назад

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

  • @RitikGarg-n5h
    @RitikGarg-n5h Год назад

    @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.

  • @shubhojeetbera09
    @shubhojeetbera09 8 месяцев назад

    Excellent video

  • @brosgaming108
    @brosgaming108 Год назад +1

    Thanks bro for this ❤️

  • @chanchalsolanki2349
    @chanchalsolanki2349 2 месяца назад

    Hi, I am a frontend Developer. graphQL is backend term. If I want to learn GraphQL, Is it any easy way to learn because I never use node.js? I have an interview and they are asking for graphQL and docker as well. Please guide me.

  • @aayushsolanki9600
    @aayushsolanki9600 Год назад +1

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

  • @pratikghorpade6853
    @pratikghorpade6853 5 месяцев назад

    Bekar Ki Bata wa epic

  • @iamakashkumarram
    @iamakashkumarram Год назад +2

    Sir please make NextJS 13.4 + GraphQL course 😊.

  • @farazsabir9547
    @farazsabir9547 6 месяцев назад

    Thanks for posting amazing content.

  • @md.shahebali38
    @md.shahebali38 Год назад

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

  • @dipanshmalhotra
    @dipanshmalhotra Год назад

    OP AAg laga di bhaiya

    • @priyanshuganatra
      @priyanshuganatra 5 месяцев назад

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

  • @vedanshbisht1309
    @vedanshbisht1309 6 месяцев назад

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

  • @carry_minatii
    @carry_minatii 11 месяцев назад

    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.

  • @sukhwindersaini5869
    @sukhwindersaini5869 5 месяцев назад

    excellent course

  • @shubhamgupta-bl1tr
    @shubhamgupta-bl1tr Год назад

    Best teacher

  • @Kv-kk2nj
    @Kv-kk2nj 9 месяцев назад

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

  • @baruntiwary31
    @baruntiwary31 Год назад +1

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

  • @shrianshagarwal9238
    @shrianshagarwal9238 Год назад

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

  • @waseemusman421
    @waseemusman421 7 месяцев назад

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

  • @mma-dost
    @mma-dost Год назад

    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

  • @nipunjain1142
    @nipunjain1142 11 месяцев назад

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

  • @raghavsharma8459
    @raghavsharma8459 3 месяца назад +1

    Error in username was due to the fact that you were passing the id of the todo instead of userId
    wrong id == todo.id
    Right id == todo.userId

  • @klyist
    @klyist Год назад

    great one .enjoying your content a lot .

  • @NanagoudT
    @NanagoudT Год назад +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 4 месяца назад

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

  • @KetanRathod-dm9ep
    @KetanRathod-dm9ep Год назад

    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 ?

  • @subhasishdey6753
    @subhasishdey6753 4 месяца назад +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.

  • @aoopss
    @aoopss Год назад

    Interesting video .... From Ludhiana👍

  • @rishidubey8745
    @rishidubey8745 Год назад

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

  • @anandoganiya9070
    @anandoganiya9070 Год назад

    Body parser ,express me inbuilt hai I guess?

    • @codewithbishal895
      @codewithbishal895 6 месяцев назад

      yes no need to explictly include body parser

  • @balveersinghrao3068
    @balveersinghrao3068 Год назад

    Sir can we have a course on postgresSQL ??

  • @SwatimonalisaPatra
    @SwatimonalisaPatra 4 месяца назад

    very helpful

  • @aadarshgurug
    @aadarshgurug Год назад +1

    it is amazing

  • @akshitgupta4749
    @akshitgupta4749 Год назад

    Awesome video bro

  • @karunrana7935
    @karunrana7935 Год назад +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

    • @Anythiny
      @Anythiny 6 месяцев назад

      thanku

  • @UsmanCodeLab
    @UsmanCodeLab Год назад

    Wait is over

  • @dhruv7827
    @dhruv7827 6 месяцев назад

    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?

    • @m4with6xx
      @m4with6xx 20 дней назад

      Watch the first 5 min with both the eyes and ears open , you'll get it

  • @akashddeepchitransh4537
    @akashddeepchitransh4537 Год назад

    Awesome video...

  • @iamakashkumarram
    @iamakashkumarram Год назад

    Sir please continue AWS series 😊

  • @ashishten538
    @ashishten538 Год назад

    Please make a video what is git and GitHub

  • @codewithbishal895
    @codewithbishal895 6 месяцев назад +1

    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
    }

  • @Riteshk_007
    @Riteshk_007 10 месяцев назад

    Sir prisma kese use krte h nextjs me ??

  • @lovishduggal9064
    @lovishduggal9064 9 месяцев назад

    Thanks

  • @ArpitGoyalTech
    @ArpitGoyalTech Год назад

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

  • @arnavpanwar1986
    @arnavpanwar1986 Год назад

    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 Год назад

      agree..

    • @codewithbishal895
      @codewithbishal895 6 месяцев назад

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

  • @vatsalrishabhpandey964
    @vatsalrishabhpandey964 6 месяцев назад

    9:40 main content starts...

  • @amansaxena2489
    @amansaxena2489 Год назад

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

  • @AYUSHDHAR-i6x
    @AYUSHDHAR-i6x 4 месяца назад

    SIR AAP USER FIND KARNE KE LIYE TODOS KA ID USE KOR RAHE HO... HAR TODO OBJECT ME USER ID DIYA HUA HAI...USKO USE KARNA THA...

  • @crush_ka_bhai
    @crush_ka_bhai Год назад

    Also make on mysql with sequlize

  • @AkashKumarRam-w7k
    @AkashKumarRam-w7k Год назад

    Sir make a tutorial on NextJS 13.4 and GraphQL.

  • @abdulragib6004
    @abdulragib6004 8 месяцев назад

    Nice bro

  • @aviii24x7
    @aviii24x7 4 месяца назад

    we can also specify the fields we want from DB, in find query, How is this differnt from that!? Ik i must be missing something! ANYBODY?/

  • @zubairakhtar3543
    @zubairakhtar3543 Год назад

    Sir, how do we apply rate limit in graphql

  • @vishalbajpai-uu2tw
    @vishalbajpai-uu2tw Год назад

    bhaiya dsa par video banaiye

  • @maxx7101
    @maxx7101 Год назад +1

    Need nextjs+graphql

  • @manishsingh-mg2wy
    @manishsingh-mg2wy Год назад

    Sir do complete the kinde 2nd part vidio

  • @flickboi2322
    @flickboi2322 Год назад

    Need NextJS + GraphQL course.

  • @ArunSharma-qo5bi
    @ArunSharma-qo5bi 10 месяцев назад

    how to connect it with nextjs

  • @Mainak908
    @Mainak908 Год назад

    amazing bro

  • @JayPrajapati-lj8pw
    @JayPrajapati-lj8pw 10 месяцев назад

    Sir todo. Userid likho error nahi ayega

  • @prashlovessamosa
    @prashlovessamosa Год назад

    Thanks.

  • @kuldeepdawar7496
    @kuldeepdawar7496 Год назад

    Your teaching explanation is fine but u are very fast

  • @whysumancode
    @whysumancode 10 месяцев назад

    upto 26:00

  • @mystic_monk55
    @mystic_monk55 11 месяцев назад

    👏👏

  • @ayush_code9849
    @ayush_code9849 Год назад

    🔥

  • @bharatha8210
    @bharatha8210 10 месяцев назад

    please to make a video English also

  • @sowmocoding5740
    @sowmocoding5740 Год назад

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

  • @abbayrai6340
    @abbayrai6340 Год назад

    Awesome