GraphQL With React Tutorial - Apollo Client

  Рет қаралды 217,231

PedroTech

PedroTech

Күн бұрын

Пікірлер
@umutacer01
@umutacer01 3 жыл бұрын
I haven't seen any video like that which's telling everything in detail and simple. I really appreciated. Thank you!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you so much! I am really happy I was able to help!
@jimmycarrera5713
@jimmycarrera5713 2 жыл бұрын
this video literally saved my life. It's been a while since the last time I played with GraphQL and Apollo, and there are been some serious changes! I've been working for years with other things, and now that I'm applying to a new job, I had to pass a tech test, pretty basic stuffs but damn, I was struggling. Great work Pedro, thanks for this content.
@hectorserrano9314
@hectorserrano9314 3 жыл бұрын
Dude, this was super useful, I subscribed to your channel. I appreciate that you'd create a tutorial to help people out even though you're pretty busy as you've mentioned. Thanks man!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you so much! The positive support I get is pushing me to work as hard as I can to grow this channel! Really appreciate ur comment!
@denissemendoza3862
@denissemendoza3862 3 жыл бұрын
Such great content, as usual. You explain at a beginner level without the need of so much jargon! Keep it up!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you! Really appreciate the support!
@dominiclapitan8466
@dominiclapitan8466 3 жыл бұрын
Thank you for this! I'm recently learning how to use the Apollo client and your video is perfect. Great content! Subscribed :D
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glad you liked it! Thank you for the support!
@RenatoRaeffrayBarbosa
@RenatoRaeffrayBarbosa 3 жыл бұрын
Thanks!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you so much for the support!
@soltiscd
@soltiscd 4 жыл бұрын
Keep pumping out the good content. Exactly what I needed!
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Thank you! Glad to hear it!
@soltiscd
@soltiscd 4 жыл бұрын
@@PedroTechnologies I have seen the npm of @apollo/client and Apollo-Client... what is the difference?
@andredesantana2188
@andredesantana2188 3 жыл бұрын
Very good tutorial for beginners who are trying to understand GraphQL with React. Keep the good work Pedro. It's not easy to do what you are doing and sharing your knowledge for free is a very noble attitude! I subscribed to the channel and hope you can make advanced tutorial as well in the future!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you so much bro! Really appreciate the support! Your name makes me think your from latin america, are you Brazilian as well? hahaha
@andredesantana2188
@andredesantana2188 3 жыл бұрын
@@PedroTechnologies Yes I'm! But I live in Canada!
@zurazura309
@zurazura309 2 жыл бұрын
​@@andredesantana2188 Agree, but I have one question, So, I have to pass test - to get a job and I'm not familiar with that 2 ("GraphQL" and "Apollo Server") so I'm learning now, I watched the first video and start 2nd, but... there is "missing" the part to install "React" along with that (to make everything work together and connect). as I see Folder and file structure first have to install React and then - in that folder install "GraphQL" and "Apollo Server", right? Thanks in advance and Respect from Georgia (Country)
@tonyhaddad7153
@tonyhaddad7153 3 жыл бұрын
one of the best tutorial makers !! keep it up mate
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glad you think so! Thank you!
@diegogallardo8281
@diegogallardo8281 2 жыл бұрын
I love you, I was trying so long to render my content to screen without Apollo and finally gave in and this worked
@romimaximus
@romimaximus 4 жыл бұрын
Yeahhh....😎🤘🤘..thankx for sharing Pedro....another awesome video..!!
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Glad you enjoyed it!
@alexxmde
@alexxmde 3 жыл бұрын
The tutorial to rule them all!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
THank you so much! I am really glad you liked the tutorial!
@peerfunk
@peerfunk 3 жыл бұрын
thank you for your work, have trying to get this to work for days with text based tutorials, you finally helped me out thanks man! Very clear, easy and straight forward example!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glad I was able to help! Thank you for watching!
@abcefg1845
@abcefg1845 2 жыл бұрын
@@PedroTechnologies jxdfnlskdnvlskdm
@EdgarVicent
@EdgarVicent 3 жыл бұрын
Excelent video. I watched at 1.5X and is priceless. Thanks!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Awesome, thank you!
@mauriciomarin5599
@mauriciomarin5599 2 жыл бұрын
Dude you are the man! Clean and concise
@TheMeepPlay
@TheMeepPlay 2 жыл бұрын
Thanks dude with this video you kinda save me about 2/3 hours of documentation reading, dont really pay attention to bad comments this is obviously a beginner tutorial that serves its purpose by far.
@kushalbansal5508
@kushalbansal5508 3 жыл бұрын
Thanks Pedro for making this so easy to understand!
@Vijaykumar-uy3gs
@Vijaykumar-uy3gs 3 жыл бұрын
Pedro's savage. Loving your work brother. Wow❕
@bhargavpandya9189
@bhargavpandya9189 3 жыл бұрын
Great video Pedro! I would love a more in depth GraphQL and Apollo content... I don't mind long videos at all because you explain well :)
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Im preparing a GQL series that im releasing next week :) it will go a lot more in depth
@bhargavpandya9189
@bhargavpandya9189 3 жыл бұрын
@@PedroTechnologies Thanks brother. There isn’t much content on GQL and Apollo out there. I really believe that this channel has great potential. Keep going and you will surely see growth!
@berakoc8556
@berakoc8556 Жыл бұрын
I think using a normal variable instead of state in the component for transforming query data is a better approach. More state = more things to think about.
@egzbel4400
@egzbel4400 2 жыл бұрын
This is the recipe. Easy to follow. Thank you man!
@ib6548
@ib6548 3 жыл бұрын
This was super helpful! You made it look easy!
@BobbyBundlez
@BobbyBundlez 3 жыл бұрын
so frickin good. great starter vid
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you!
@tonymore3904
@tonymore3904 3 жыл бұрын
you are amazing pedro dom.
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you!
@RenatoRaeffrayBarbosa
@RenatoRaeffrayBarbosa 3 жыл бұрын
Great introductory, down to earth. Thank you.
@funnyanimalworld7579
@funnyanimalworld7579 2 жыл бұрын
you are explaining all this really well for me ,thank you.
@magicfibre
@magicfibre 11 ай бұрын
28:23 Does it though? This looks like array destructuring, which doesn't care about names, only positions. While it's probably good practice to name them the same to avoid confusion, it doesn't have to be the same. Apart from that little nitpick, thanks for making this video! It's a very nice introduction to the library!
@moha_linus
@moha_linus 4 жыл бұрын
u made it look so easy bro thank you very much
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Thank you! I am glad I was able to help you!
@mwnkt
@mwnkt 3 жыл бұрын
I love you videos , please keep making more
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Will do :) Thank you!
@osyopans
@osyopans 3 жыл бұрын
Legal Pedro. Espero que tenha muito sucesso com o canal.
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Obrigado!
@mohanr6487
@mohanr6487 3 жыл бұрын
Great video, callback function for createUser? To make sure new user got added successfully or not.
@ahmedelgaidi
@ahmedelgaidi 2 жыл бұрын
Thank you, man Very Helpful
@pcgs_
@pcgs_ 3 жыл бұрын
Muito bom o tutorial!!! Não é atoa que todo Pedro é desenrolado!! Valeuu
@jikol9631
@jikol9631 2 жыл бұрын
7:01 - This is where I lost it, good job
@umairzafar5205
@umairzafar5205 3 жыл бұрын
Loved it man !!!
@riantritiyanuar9237
@riantritiyanuar9237 3 жыл бұрын
Bro, you helped me a lot! Thank You!
@swet_1997
@swet_1997 3 жыл бұрын
Thx bro, you are explaining everything like you should. Liked and Subscribed :)
@kinoshan591
@kinoshan591 3 жыл бұрын
Thank you for the tutorial ❤️
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you so much!
@jeremyflowers8908
@jeremyflowers8908 2 жыл бұрын
26:48 You could define input type to avoid duplication
@favourbawa5520
@favourbawa5520 3 жыл бұрын
This was amazing, thank you very much!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glad it was helpful!
@IamSH1VA
@IamSH1VA 3 жыл бұрын
Nice tutorial 👍 Thanks 🙏
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Welcome 👍
@abdullahmoamen9227
@abdullahmoamen9227 3 жыл бұрын
great video thanks pedro
@sai_charan
@sai_charan 3 жыл бұрын
Thank you, Pedro!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you for watching!
@EnjoyClassicalMusic
@EnjoyClassicalMusic 3 жыл бұрын
I really love the colorful icon of your folder in project file tree. Could you tell me which plugin can do it in VSCode? thanks^^
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Material Theme :)
@EnjoyClassicalMusic
@EnjoyClassicalMusic 3 жыл бұрын
@@PedroTechnologies I have extended it~ thank you so much^^
@novudusomasekhar702
@novudusomasekhar702 2 жыл бұрын
Thanks a lot for this video, i have a question which is after user is created, how to call getAllUsers query to get latest user list?
@05forn
@05forn 4 жыл бұрын
Hey pedro, for someone who is beginning their self taught journey could you please provide a roadmap and some resources. Love your videos bro
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Thank you! I've been wanting to make a video on a roadmap for a while now cause I remember when I started this confused the hell out of me hahaha Should make one soon!
@05forn
@05forn 4 жыл бұрын
@@PedroTechnologies thanks!
@dariashaulko4867
@dariashaulko4867 2 жыл бұрын
How to use Graphql query with class components in React?
@valentinagomez9415
@valentinagomez9415 3 жыл бұрын
thanks for this video! really, helps me a lot
@nakjemmy
@nakjemmy 2 жыл бұрын
Very helpful tutorial!
@esotericrhythms9696
@esotericrhythms9696 3 жыл бұрын
This is very helpful :) Thanks.
@mwaqas649
@mwaqas649 2 жыл бұрын
Really appreciated ❤
@johnreyasong895
@johnreyasong895 3 жыл бұрын
Thank you for this Sir!
@yigitruzgaruzun7289
@yigitruzgaruzun7289 4 жыл бұрын
Thanks. Please continue to Apollo
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Will make more videos!
@silvesterwali6565
@silvesterwali6565 4 жыл бұрын
this is amazing bro
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Thank you! Glad you liked it!
@zubinmukherjee1020
@zubinmukherjee1020 3 жыл бұрын
great work ! Thanks
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glad you liked it!
@keithcarrillo8238
@keithcarrillo8238 3 жыл бұрын
Hey thanks for the video Pedro. I was wondering does your backend have to have GraphQL in order for your front end to use GraphQL as well. Or can my backend just simply return json data and my frontend can still use GraphQL?
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Interesting question! I believe it would be possible however most frontend graphql libraries require you to have 1 single endpoint (the /graphql) endpoint. Hence I don't know how that would work!
@keithcarrillo8238
@keithcarrillo8238 3 жыл бұрын
@@PedroTechnologies Oh ok Thanks Pedro!
@champong00
@champong00 3 жыл бұрын
They called it Backtick ``, It is use when you want to write multiple line.
@arwysyah2400
@arwysyah2400 3 жыл бұрын
Hei bro , nice ,,,, you explain about that super clear
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you so much 🙂
@EduardoDiniz4
@EduardoDiniz4 Жыл бұрын
Great video!
@okeyshourovroy2769
@okeyshourovroy2769 3 жыл бұрын
While using apollo client in nextjs the cookie is not sending to the backend. Even after using cors in backend with origin and credentials true. And in apollo client credentials true. Still cookie not sending to the backend with request. Can you please help out with a tutorial?
@emeken
@emeken 4 жыл бұрын
This is awesome!
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Glad you liked it!
@blender_wiki
@blender_wiki Жыл бұрын
Great video, very competent tutorial, however Apollo is good for beginners or for a small project, in productions is better use a solution like Relay.
@kevinavignon4335
@kevinavignon4335 2 жыл бұрын
What are the VS Code extensions that you are using?
@comod
@comod Жыл бұрын
19:54 this is why you should use typescript
@irakli.asatiani
@irakli.asatiani 5 ай бұрын
did you really want to have those internal state with just listing the data? in fact that hook should have been automatically trigger updates.
@Pilosofia
@Pilosofia 3 жыл бұрын
We need video from catching and state management in apollo client
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
I want to make one!
@faiqhacili7504
@faiqhacili7504 3 жыл бұрын
You are great thank you!
@michaeltrew8102
@michaeltrew8102 3 жыл бұрын
What happened to last name in the API? was it just not hooked up?
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
It is still there! With graphql i can specify what I want to see, so I just forgot to add lastName as one of the fields in the request, but in the json it is still there!
@jasonhackson2805
@jasonhackson2805 3 жыл бұрын
please can you do a tutorial on how to upload single and multiple files using react graphql apollo-server-express. will really be appreciate. doesn't have to be fancy.
@AmanVerma-ci3kg
@AmanVerma-ci3kg 3 жыл бұрын
Unable to pass mongodb _id to mutation , It's not supporting 32 signed bit
@candycane55
@candycane55 3 жыл бұрын
Just a beginner question. Why do we actually need to something like apollo? We can call the APIs using fetch or axios as well right? Sorry if that's a stupid question
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
It's not a stupid question hahaha I had the same doubt back when I started. You can use axios/fetch but its significantly harder/more annoying lmao. Cause the way you structure a gql request is very different from a way you structure a normal http request. I defo recommend a gql frontend library like apollo, most big companies using gql uses it :)
@jmysabbagth8151
@jmysabbagth8151 3 жыл бұрын
Great tutorial
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you!
@nanonkay5669
@nanonkay5669 3 жыл бұрын
The set up looks more complicated than usual. I thought the useQuery hook already dealt with error handling and all that.
@rubberclay
@rubberclay 3 жыл бұрын
How can I solve CORS problem in 17:00 ?
@blizzardking1320
@blizzardking1320 2 жыл бұрын
No merch!?!??
@wladmyrmachado2333
@wladmyrmachado2333 4 жыл бұрын
Awesome!
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Thanks! kkkkkk
@HoNow222
@HoNow222 3 жыл бұрын
Please if you edit your code make sure to say it in the video!!
@offer_discount
@offer_discount 3 жыл бұрын
very nice tutorial
@anchalsrivastava9763
@anchalsrivastava9763 3 жыл бұрын
Thank you :)
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
No problem 😊 Glad you liked the video!
@justinsengweb-per70
@justinsengweb-per70 Жыл бұрын
where edit do you have brother?
@yogeshsharma8966
@yogeshsharma8966 3 жыл бұрын
Can you please share your json data file, or api
@oscararmenta3537
@oscararmenta3537 3 жыл бұрын
I already try everything, but for some reason not data is displayed: When I try to make the client reach the graphQL server it appears bad request, and the data as undefined tree times.
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Can you post the error or gql response here?
@apimpnamedflipflap
@apimpnamedflipflap 3 жыл бұрын
​@@PedroTechnologies I had the same issue when i was trying to do mutations. However my code was a bit different from PedroTechs and i was trying to query towards mongoDB. Anyhow in case it helps anyone, this was my solution: I put the query variables in an object ->........ createPost(name: {variables}) ........... and now it works, like so: export const CREATE_POST = gql` mutation CreatePost($name: String!, $title: String!, $description: String!) { createPost(name: {$name, title: $title, description: $description}) { id name title description } } `;
@oscararmenta3537
@oscararmenta3537 3 жыл бұрын
@@PedroTechnologies Oh I already solve it, it was just a typo mistake. Thank you so much for your comment is really good to know a KZbinr that cares and listens to his suscribers you're awesome!!!
@iridium-x7i
@iridium-x7i 2 жыл бұрын
kkkk excelente video bro.
@little01giant68
@little01giant68 2 жыл бұрын
how to get one user (use to id)
@usmanmughal5916
@usmanmughal5916 4 жыл бұрын
how to use context with it?
@INfoUpgraders
@INfoUpgraders 4 жыл бұрын
Very helpful
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Glad you liked it!
@dylanarveson9594
@dylanarveson9594 2 жыл бұрын
* notices port number * Nice.
@MasharipovSaidbek
@MasharipovSaidbek 2 жыл бұрын
nice!
@pedromanuelcamargomendez6520
@pedromanuelcamargomendez6520 4 жыл бұрын
Gracias. buen aporte.
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
De nada! Me alegra que tu guste!
@Believer09_29
@Believer09_29 3 жыл бұрын
Well explained, thanks for this amazing video. 👌👌
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
My pleasure 😊
@Shellflower1234
@Shellflower1234 4 жыл бұрын
Wowww
@KevinEontrainer381
@KevinEontrainer381 3 жыл бұрын
The only thing I remember from this is the port number
@jackdo6594
@jackdo6594 2 жыл бұрын
Nice content
@selfather
@selfather 2 жыл бұрын
good tutorial
@mehmettemell
@mehmettemell 4 жыл бұрын
good content
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Thank you!
@youssefel-shabasy833
@youssefel-shabasy833 3 жыл бұрын
how old are you ?
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Im 19, turning 20 in 3 months!
@sayyedirfan6766
@sayyedirfan6766 2 жыл бұрын
Nice
@OcasoND
@OcasoND Жыл бұрын
Thanks
@tom_zanna
@tom_zanna 3 жыл бұрын
Honestly, I disliked this video. From 4:00 to 9:00 you keep saying "if you are a beginner don't worry". In my opinion you should go straight to building a basic client and sending a query and then improve it with error handling and caching
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Ok, no worries! I'm sorry you didn't find the video helpful. I have other videos where I don't show error handling, so If you want you can watch those too!
@assimez-zaky8363
@assimez-zaky8363 3 жыл бұрын
Thx so much, but if something is not important in the beginning just don't mention it, it confuses a lot, and get people leave the video
@devindias9515
@devindias9515 6 ай бұрын
strongly disagree.
React With GraphQL (Apollo Client) Crash Course
1:06:28
Laith Academy
Рет қаралды 91 М.
Context API Tutorial For Beginners - Using React Hooks
12:26
PedroTech
Рет қаралды 215 М.
Learn GraphQL In 40 Minutes
39:43
Web Dev Simplified
Рет қаралды 749 М.
Клиент Apollo GraphQL для React-приложений
44:11
Михаил Непомнящий
Рет қаралды 30 М.
Using GraphQL APIs with TypeScript in a React application
13:59
StepZen, an IBM Company
Рет қаралды 10 М.
GraphQL Crash Course - GraphQL NodeJS
42:31
Piyush Garg
Рет қаралды 122 М.
React Apollo State Management Best Practices
7:33
Ben Awad
Рет қаралды 51 М.
What is GraphQL?
12:03
Hitesh Choudhary
Рет қаралды 199 М.