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.
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
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.
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.
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.
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
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.
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.
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
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 ❤.
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.
@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.
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.
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.
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
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?
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 ?
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.
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
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?
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 }
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.
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.
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
true bro
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
Loved it. Please group all the graphql videos in a playlist in order, this will be really helpful.
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.
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.
Finally, Highly recommended content, My all confusions cleared, Really Appreciated!
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.
❤️❤️
@@piyushgargdev You are Pro.! Love your content.
Best and my Favourite teacher on RUclips 🔥. Love you piyush sir for this amazing course. If Possible please make NextJS + postgreSQL course.😊
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
Optimistic voice ?? Girly voice hai bhai
@@AK-ln2koHijde ho kya??
Kitna soft voice hai Piyusha bhaiya ka..
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.
Thanks Man
how did todo.id work for him without any error?
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.
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
Aare bhaiya mai kal ye hi sikhne ke liye RUclips prr video dekh raha tha, aaj aapne hi video bna thi, 👏👏🙏🙏🙏
What an amazing tutorial. Thank you, Piyush.
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
This crash course is best for graphql starting journey ❤️❤️
One of the best Teacher on RUclips ❤
saying wrong statement with this confident is something else :D overall it's a good crash course
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 ❤.
Really enjoyed watching this.
Please keep on uploading more videos, it helps a lot, Thank you Sir!!!
He deserves more subscribers 👏
Hey Piyush! Thanks for the tutorial. Please create a playlist of all GraphQL videos
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.
Kya mast cheez hai graphql bhai !
Amazing Content Piyush....Loving your videos
It's not rate limiting. You have to use todo.userId in the api call.
Thanks!
This is cause n+1 query problem
amazing sir .......... waiting for that literally
Wow sir thanks for the course your the best tutor
I wait for long time thanks 👏👏👏👏
Very nice 😊 really deserve my like. 😊😊😊
Keep going❤
Best video i will found for graphl can.
What vsCode theme do you use?
@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.
Excellent video
Thanks bro for this ❤️
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.
I think there is mistake, you should take ''userId' instead of 'id' in user sub model at 25:25
yessssss!
Bekar Ki Bata wa epic
Sir please make NextJS 13.4 + GraphQL course 😊.
Thanks for posting amazing content.
Awesome, Explanation, please make a project with graphql and react redux with node js express, redis with deployment
OP AAg laga di bhaiya
Are dipansh bhai aap yaha (I'm one of the students of supreme 2.0 batch)
Why a seperate server for graphql isnt that a api query lang, wouldnt it run on my existing server?
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.
excellent course
Best teacher
How do you create your videos, they are cool like what tools you use for recording, editing
Hii sir in Twitter clone course, can we will be able to interact with you
Hey Piyush! Thanks for the tutorial.
Can you please help with a video on how to setup graphql in nextjs(latest).
which pen tab and software you use for your screen and voice recordings. plx share details
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
Hi, Is there any OpenSource repo of graphql where we can contribute?
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
great one .enjoying your content a lot .
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?
bro it has a getalluser where you get all users and just there id
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 ?
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.
Agreed
Interesting video .... From Ludhiana👍
sir please make a video on how to use AWS with Node js 🙏🙏🙏🙏🙏🙏🙏🙏
Body parser ,express me inbuilt hai I guess?
yes no need to explictly include body parser
Sir can we have a course on postgresSQL ??
very helpful
it is amazing
Awesome video bro
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
thanku
Wait is over
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?
Watch the first 5 min with both the eyes and ears open , you'll get it
Awesome video...
Sir please continue AWS series 😊
Please make a video what is git and GitHub
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
}
Sir prisma kese use krte h nextjs me ??
Thanks
But the mentioned problem can be easily solved like use "Select name from Table" Instead of "Select * from Table" . Isn't it?
These are SQL queries. What we are doing is NoSQL
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.
agree..
you are not getting the point
It got the data in a single API call you dont need multiple API likes in REST API
9:40 main content starts...
sirr aap kuch din pehle nikal dete meko intern ka project dena tha graphql waala
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...
Also make on mysql with sequlize
Sir make a tutorial on NextJS 13.4 and GraphQL.
Nice bro
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?/
Sir, how do we apply rate limit in graphql
bhaiya dsa par video banaiye
Need nextjs+graphql
Sir do complete the kinde 2nd part vidio
Need NextJS + GraphQL course.
how to connect it with nextjs
amazing bro
Sir todo. Userid likho error nahi ayega
Thanks.
Your teaching explanation is fine but u are very fast
upto 26:00
👏👏
🔥
please to make a video English also
Is resolver, after /users/${todo.id}, make sure it is ${todo.userId} instead of id. That's the trouble he was facing.
Awesome